Custom Dispatch Calls
How do I ensure that I receive notifications about robberies and other custom calls in the dispatch? It is necessary to make changes to the exports that scripts have or that have been changed to cust
How to create complete new call:
Go to
akre_dispatch/client/c_dispatches.lua
Change
MyNewDispatchCall()
to your own dispatch call name.
It May be:
And don't foget also change
exports('MyNewDispatchCall', MyNewDispatchCall)
with the same name as you named the dispatch call.
Now go to akre_dispatch/locale/loc.lua - and use this template to create the dispatch code and name that will be shown for the call:
Change the text of your_tittle_name to your own in both files, i.e. c_dispatches.lua and loc.lua. It should look something like this
Now go to akre_dispatch/client/c_blips.lua and lets create a blip for our new dispatch call.
The title have to match in every three files to make the correct connection!
Move back to akre_dispatch/client/c_dispatches.lua and edit your description
Now customize which jobs receives the dispatch call
If you have added a new dispatch call that has a new dispatch code or dispatch code does not remember to go to akre_dispatch/ui/app.js and find const TitleColorMapping and add:
If you have all this done then create your export: exports['akre_dispatch']:MyNewDispatchCall and follow another steps:
Examples how to add calls to dispatch
QB-Jewelery
Find this trigger:
and replace them with this:
exports["akre_dispatch"]:SuspiciousActivity()
Find this trigger:
And replace them with:
exports["akre_dispatch"]:JeweleryRobbery()
Now Restart your server and Dispatch should shows the calls if alarm is triggered...
Last updated