[ESX] SimpleDispatch - Command based Dispatch system


Hey guys,

recently somebody told me that he needs a script like this and today I had some time left, so I finished the script. I know it’s really basic, but maybe it’s useful for some of you.

The script allows you to set up Dispatch Commands in the Config.lua:

Config.Dispatches = {
    {number = '911', label = 'LSPD', picture = 'CHAR_CALL911', job = 'police'},
    {number = '900', label = 'L.S. Customs', picture = 'CHAR_LS_CUSTOMS', job = 'lsc'},
}

Then a player can execute /911 [message] and the LSPD will be informed. Looks like this:

For the players with the police job, there will be a blip created, so they find the person.

I’ve added a small Language config too, so there is no need to search for the string in the client.lua

Strings = {
    ['dispatch_subtitle'] = 'New Dispatch',
    ['dispatch_sent'] = 'Dispatch sent',
    ['dispatch_infotext'] = 'We got your dispatch! \nA ~y~unit is on the way ~s~to your current location!',
    ['blip_dispatch'] = 'Dispatch',
    ['location'] = '~w~Location: ~y~',
}

Download: GitHub - Luis-spec/SimpleDispatch: My Discord

Feel free to check out my other scripts

myDrugs
myClothesshop
myProperties
myCarthief
myMapbuilder
myMultichar
myBills
EnhancedBarbershop
myJobsystem

7 Likes

Could this be made to use discord permissions for the police job?

1 Like

How do Discord permissions work?

1 Like

its takes a webhook and a function i can give you an example…

image

i realize you can barely read that
image

1 Like

id love to see it implemented <3

So like the message is also pasted in the Discord?

correct

how do you implement this? can you show us this for this Dispatch script?

im not really sure, thats whay i only gave an example… if you figure it out you should lmk.

Nice ! Will try to edit to make it work with phone

1 Like

Before i download, when a dispatch comes to the service requested, do they have to accept before it tells the sender they are responding?

no

5 char-

something my community has been looking for amazing!!

1 Like