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