So, I have tried to disable Ambulances, Firetrucks, etc from responding to AI accidents, but something is obviously not working and I am trying to figure if I am making obvious mistake or the native is just not working.
I have tried following:
Citizen.CreateThread(function() while true do Wait(0) for i = 1, 15 do EnableDispatchService(i, false) end end end)
And I have also tried to disable it separately…
Citizen.CreateThread(function() while true do Wait(0) EnableDispatchService(1, false) EnableDispatchService(2, false) EnableDispatchService(3, false) //etc end end)
I am getting following in the console:
attempt to call a nil value (global ‘EnableDispatchService’)