-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.lua
More file actions
37 lines (32 loc) · 1.14 KB
/
client.lua
File metadata and controls
37 lines (32 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-- Fonction pour dessiner un texte 3D au sol
local function draw3DText(x, y, z, text)
local onScreen, _x, _y = World3dToScreen2d(x, y, z)
local camCoords = GetGameplayCamCoords()
local dist = #(vector3(x, y, z) - camCoords)
local scale = 1 / dist * 2
local fov = 1 / GetGameplayCamFov() * 100
scale = scale * fov
if onScreen then
SetTextScale(0.0 * scale, 0.35 * scale)
SetTextFont(4)
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextDropshadow(0, 0, 0, 0, 255)
SetTextEdge(2, 0, 0, 0, 150)
SetTextDropShadow()
SetTextOutline()
SetTextCentre(1)
BeginTextCommandDisplayText("STRING")
AddTextComponentSubstringPlayerName(text)
EndTextCommandDisplayText(_x, _y)
end
end
-- Coordonnées pour afficher le texte
local textCoords = vector3(1601.50, 6616.60, 16.06) -- Modifiez ces coordonnées selon vos besoins
-- Boucle principale pour afficher le texte
CreateThread(function()
while true do
Wait(0)
draw3DText(textCoords.x, textCoords.y, textCoords.z, "Le plugin fonctionne avec succès")
end
end)