Installation:
Download the resource from above, extract to your resources folder, and add the following to your server configuration file. start disabledispatch2
If you previously installed disabledispatch, remove start disabledispatch from your configuration file.
What does this do?
DisableDispatch simply prevents all emergency services and military from dispatching. This means that if a fire breaks out or a pedestrian is killed, no ambulance or fire trucks will respond, etc. This also disables all AI police from responding.
EDIT: It appears that it does. If you want to disable it, change the 12 to 11 and restart your client and the server. That should fix it. EDIT 2: It does fix it if you change 12 to 11. Confirmed and tested.
no that’s good people on my server have been getting tanks from military base and RDM people on my server so it’s good that it works but @KennethDev would you know a way to prevent certain vehicles from spawning at all like the sports cars I been seeing the sports car a lot in the city and I want them to get one by buying one you got any idea how I would do that?
Okay, there’s the code right there, you don’t need to download his specific file, just follow the instructions:
Create a new folder inside the resources folder with any name, let’s call it disabledispatch.
Inside this new folder, create a file called __resource.lua (mind the TWO underscores).
Inside this file, write the following: client_script "client.lua"
Now create the file called client.lua and write the following code:
Citizen.CreateThread(function()
for i = 1, 12 do
Citizen.InvokeNative(0xDC0F817884CDD856, i, false)
end
end)
Finally, if you are using the old server, add - disabledispatch into citmp-server.yml under AutoStartResources.
If you are using FXServer, add start disabledispatch into your server.cfg