Advertisement
Guest User

Help me getting this to work please! <3

a guest
Mar 31st, 2020
612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Key = 38
  2.  
  3. local coords = vector3(244.41, -2726.42, 17.88)
  4. local size = 2.0
  5. local height = 2.0
  6.  
  7. Citizen.CreateThread(function()
  8. while true do
  9. Citizen.Wait(0)
  10. DrawMarker(1, coords.x, coords.y, coords.z, 0, 0, 0, 0, 0, 0, size, size, height, 0, 155, 255, 155, 0, 0, 2, 0, 0, 0, 0)
  11. if GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), coords.x, coords.y, coords.z, true) < size then
  12. CurrentActionMsg = ('press_access')
  13. if (IsControlJustPressed(1, Key)) then
  14. TriggerClientEvent("TrafficAlert")
  15. end
  16. end
  17. end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement