Hi,
So i’m trying to make DisplayHelpTextThisFrame when a player goes into a DrawMarker but i can’t make it work.
My DrawMarker works but when i go in it, nothing happens.
Citizen.CreateThread(function()
while true do
Wait(0)
DrawMarker(1, -423.90957641602, -1682.8342285156, 19.02908706665, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0, 5.75, 5.75, 0.75, 255, 0, 0, 100, false, true, 2, false, false, false, false)
if GetDistanceBetweenCoords(-423.90957641602, -1682.8342285156, 19.02908706665,GetEntityCoords(GetPlayerPed(-1))) < 5 then
DisplayHelpTextThisFrame("Hit ~INPUT_CONTEXT~ to do something");
end
end
end)
Also i wanted to know, what’s the use of “Citizen.CreateThread” ? I’ve seen others "Citizen. " but i don’t know what they do, what’s their use, can i see that somewhere ?
Thanks