Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Key = 38
- local coords = vector3(-1081.85, -247.98, 36.76)
- local size = 2.0 -- How big do you want the marker to be
- local height = 1.0 -- How high do you want the marker to be
- Citizen.CreateThread(function()
- while true do
- Citizen.Wait(0)
- 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)
- if GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), coords.x, coords.y, coords.z, true) < size
- if (IsControlJustPressed(1, Key)) then
- TriggerEvent("TrafficAlert")
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement