I wish someone help me fix the error that has this script because it does not work
gMe = getLocalPlayer()
gMeCar = getPedOccupiedVehicle(gMe)
gRoot = getRootElement()
screenWidth, screenHeight = guiGetScreenSize()
function Texts ()
local XL2, YL2 = getScreenFromWorldPosition ( 2100, 3902.2028808594, 68.285171508789)
if XL2 and YL2 then
x,y,z = getElementPosition(gMe)
local distance = getDistanceBetweenPoints2D ( x, y, 2100, 3902.2028808594)
if distance > 130 or distance < 10 then return end
local size = distance/400
dxDrawText ( "PROX", XL2, YL2,XL2, YL2, tocolor ( 0, 0, 0, 128 ), 1/size-3, "bankgothic", "center", "center" )
dxDrawText ( "PROX", XL2, YL2,XL2, YL2, tocolor ( 0, 35,128, 255 ), 1/size-3.1, "bankgothic", "center", "center" )
end
end
If I could fix that error and they are grateful
Also, someone could make a script of dxdrewtext with these coordinates
x: 3313.59765625
y:-2451.5554199219
z:47.380950927734
The text, font, size and color are on me
Grettings!