How to Change the Dispatch
Last updated
Last updated
To customize the dispatch system used in our scripts, follow these steps:
Locate the Config File: Find the config.lua
file in your script directory. This file contains various configuration options for the script.
Edit the Dispatch Setting: Open the config.lua
file with a text editor. Look for the line that defines the dispatch setting:
Choose Your Dispatch System: Replace 'default'
with one of the following options based on the dispatch system you want to use:
'cd_dispatch'
– For CD Dispatch
'qs-dispatch'
– For QS Dispatch
'ps-dispatch'
– For PS Dispatch
'rcore_dispatch'
– For RCore Dispatch
'default'
– For the default dispatch system (blip)
Save Your Changes: After selecting the desired dispatch system, save the changes to the config.lua
file.
Restart Your Server: To apply the changes, restart your FiveM server.
If you are using ps-dispatch, you should replace the dispatch jobs with the corresponding job types found in qb-core/shared/jobs.lua. Additionally, if you want a custom blip, you should add a blip option with the codeName found in the editable part of our scripts.
Our scripts generally support cd dispatch, qs-dispatch, ps-dispatch, rcore dispatch. If you are using a different dispatch, find the madCore.policeAlert function in the editable sections of our scripts and add your own dispatch script's export, trigger, etc. to the default section.
By following these steps, you can configure the dispatch system that best fits your server’s needs. If you encounter any issues or need further assistance, please refer to the support section or reach out via our Discord server.