Integrated with ps-mdt
For all support questions, ask in our Discord support chat. Do not create issues on GitHub if you need help. Issues are for bug reporting and new features only.
- Download ZIP
- Make sure your qb-core is fully updated to the latest version.
- Drag and drop resource into your server files
- Start resource through server.cfg
- Drag and drop sounds folder into interact-sound\client\html\sounds
- Configure your language
- Restart your server.
Dispatch notifications are sent containing only the alert name, omitting additional details to help over populated servers. For more information, the dispatch menu can be accessed. Can be configured on Config.ShortCalls, false by default.
![](https://private-user-images.githubusercontent.com/82112471/292132187-7671b361-88aa-42f6-9cd9-32d0fd94881e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MjA1OTgsIm5iZiI6MTcyMzgyMDI5OCwicGF0aCI6Ii84MjExMjQ3MS8yOTIxMzIxODctNzY3MWIzNjEtODhhYS00MmY2LTljZDktMzJkMGZkOTQ4ODFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE0NTgxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlOThlY2ZhMjcyY2RiNGIzZTVkMTc0MGRlYjNmMWQ5NGFlMWIxM2ZmYWY3MGQ5YjA2MDdlOWJmMDM1ZjJiZjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.V1r8LreZdYYCOWV-WxIXmV9iq3f1K5Z-DMrxRub7jQg)
![](https://private-user-images.githubusercontent.com/82112471/281455832-42f84fc1-a30a-441e-8e00-618a0dfde0f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MjA1OTgsIm5iZiI6MTcyMzgyMDI5OCwicGF0aCI6Ii84MjExMjQ3MS8yODE0NTU4MzItNDJmODRmYzEtYTMwYS00NDFlLThlMDAtNjE4YTBkZmRlMGYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE0NTgxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzMGQyMDFmZTVmOWViYzg5ODVkZmE0MjUwZjA3ZTdkYjFlMjA4NzYxMTIxZWU2N2UzYWY1YTdmN2YzMmI4NzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qbSmsLPi--gUAhxS68G_dJbSLMTKQiT6G_ugZhpJNE0)
![](https://private-user-images.githubusercontent.com/82112471/273695246-4a3d44b9-1629-457b-ba0e-a77c617aa993.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MjA1OTgsIm5iZiI6MTcyMzgyMDI5OCwicGF0aCI6Ii84MjExMjQ3MS8yNzM2OTUyNDYtNGEzZDQ0YjktMTYyOS00NTdiLWJhMGUtYTc3YzYxN2FhOTkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNI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BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.egFpQ5zAvxdO1z3v8aL7DmqA4pNuxWySTQS_KprZwjw)
![](https://private-user-images.githubusercontent.com/82112471/273695542-01569df8-d5f6-417b-bcd4-422551eaa840.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MjA1OTgsIm5iZiI6MTcyMzgyMDI5OCwicGF0aCI6Ii84MjExMjQ3MS8yNzM2OTU1NDItMDE1NjlkZjgtZDVmNi00MTdiLWJjZDQtNDIyNTUxZWFhODQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE0NTgxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0MTA2NTk3N2ZhODFkZjYzYmY0YzkyMDk0NGFhNTM5OWFiMzMwOGQ0NmRlYzhlMDQ1Y2E0YjZiYWFiNTJiNzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0l2MqojfMFqLmXxpFiYOZgd8QSHREEQO-zQ8XLeDNPU)
![](https://private-user-images.githubusercontent.com/82112471/273695233-f2b111b2-60c3-428e-b12a-1bfed617f09e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MjA1OTgsIm5iZiI6MTcyMzgyMDI5OCwicGF0aCI6Ii84MjExMjQ3MS8yNzM2OTUyMzMtZjJiMTExYjItNjBjMy00MjhlLWIxMmEtMWJmZWQ2MTdmMDllLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE0NTgxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4Zjc3NzcxMDY4Y2FlODhlMGYxZWJhZDdlOTJiNmQxZWJlYjRkOGM4YzIyMGZlNjYyYzhkZmY0Y2UwY2E3MjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uqImtdnVj3QD8_8iQKs0Irb5d_pSZYTwThj1aMm2d5I)
- Place this
setr ox:locale en
inside yourserver.cfg
- Change the
en
to your desired language!
Supported Languages:
Alias | Language Names |
---|---|
en | English |
de | German |
nl | Dutch |
cs | Czech |
pt-br | Brazilian Portuguese |
es | Spanish |
- exports['ps-dispatch']:ArtGalleryRobbery()
- exports['ps-dispatch']:CarBoosting(vehicle)
- exports['ps-dispatch']:CarJacking(vehicle)
- exports['ps-dispatch']:CustomAlert()
- exports['ps-dispatch']:DeceasedPerson()
- exports['ps-dispatch']:DrugBoatRobbery()
- exports['ps-dispatch']:DrugSale()
- exports['ps-dispatch']:EmsDown()
- exports['ps-dispatch']:Explosion()
- exports['ps-dispatch']:Fight()
- exports['ps-dispatch']:FleecaBankRobbery(camId)
- exports['ps-dispatch']:HouseRobbery()
- exports['ps-dispatch']:HumaneRobery()
- exports['ps-dispatch']:Hunting()
- exports['ps-dispatch']:InjuriedPerson()
- exports['ps-dispatch']:OfficerDown()
- exports['ps-dispatch']:OfficerBackup()
- exports['ps-dispatch']:OfficerInDistress()
- exports['ps-dispatch']:PacificBankRobbery(camId)
- exports['ps-dispatch']:PaletoBankRobbery(camId)
- exports['ps-dispatch']:PrisonBreak()
- exports['ps-dispatch']:Shooting()
- exports['ps-dispatch']:SignRobbery()
- exports['ps-dispatch']:SpeedingVehicle(vehicle)
- exports['ps-dispatch']:StoreRobbery(camId)
- exports['ps-dispatch']:SuspiciousActivity()
- exports['ps-dispatch']:TrainRobbery()
- exports['ps-dispatch']:UndergroundRobbery()
- exports['ps-dispatch']:UnionRobbery()
- exports['ps-dispatch']:VangelicoRobbery(camId)
- exports['ps-dispatch']:VanRobbery()
- exports['ps-dispatch']:VehicleShooting(vehicle)
- exports['ps-dispatch']:VehicleTheft(vehicle)
- exports['ps-dispatch']:YachtHeist()
Add the following into your alerts.lua
and change to your liking:
local function TestAlert()
local coords = GetEntityCoords(cache.ped)
local vehicle = GetVehicleData(cache.vehicle)
local dispatchData = {
message = locale('testalert'), -- add this into your locale
codeName = 'testalert', -- this should be the same as in config.lua
code = '10-35',
icon = 'fas fa-car-burst',
priority = 2,
coords = coords,
street = GetStreetAndZone(coords),
heading = GetPlayerHeading(),
vehicle = vehicle.name,
plate = vehicle.plate,
color = vehicle.color,
class = vehicle.class,
doors = vehicle.doors,
jobs = { 'leo' }
}
TriggerServerEvent('ps-dispatch:server:notify', dispatchData)
end
exports('TestAlert', TestAlert)
Add codeName in config.lua
for the particular robbery to display the blip
["testalert"] is the codename you passed with the TriggerServerEvent in step 1
['testalert'] = { -- Need to match the codeName in alerts.lua
radius = 0,
sprite = 119,
color = 1,
scale = 1.5,
length = 2,
sound = 'Lose_1st',
sound2 = 'GTAO_FM_Events_Soundset',
offset = false,
flash = false
},
Information about each parameter is in the alerts.lua
file.
-
There are no calls showing on dispatch or mdt list.
-
Make sure you have a job type specified in your qbcore/shared/jobs.lua like:
-
Make sure that you're using the correct job type as leo and make sure your qb-core is fully updated to the latest version.
-
On shared/config.lua make set Config.Debug = true to test calls as police officer.(ONLY to be used as testing, make sure to disable on live production)
-
-
How to change colors of the calls?
- Priority 1 is red and priority 2 is normal on the config.
-
To increase the time that calls are shown on the screen, do the following:
- Find the "alerts.lua" file in the client folder.
- Open this file with a text editor or a development tool like Visual Studio Code.
- Look for the code "alertTime = nil".
- Replace "nil" with the number of seconds you want the calls to display. For example, setting "alertTime = 25" means calls will be shown for 25 seconds.