Advertisement
Guest User

Marker, help me adding a Notification

a guest
Apr 1st, 2020
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Key = 38
  2.  
  3. local coords = vector3(-1081.85, -247.98, 36.76)
  4. local size = 2.0 -- How big do you want the marker to be
  5. local height = 1.0 -- How high do you want the marker to be
  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
  12. if (IsControlJustPressed(1, Key)) then
  13. TriggerEvent("TrafficAlert")
  14. end
  15. end
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement