Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Key = 38
- local coords = vector3(244.41, -2726.42, 17.88)
- local size = 2.0
- local height = 2.0
- 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 then
- CurrentActionMsg = ('press_access')
- if (IsControlJustPressed(1, Key)) then
- TriggerClientEvent("TrafficAlert")
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement