Using Exports
Speeding, shooting, auto theft, melee fights, and player downed are all default alerts that comes with the script.
If you want alerts to on ps-dispatch, you need to manually add each export below to the corresponding script. Usually this is where it calls for the cops on client sided.
exports["ps-dispatch"]:CustomAlert({
coords = vector3(0.0, 0.0, 0.0),
message = "Criminal Activity",
dispatchCode = "10-4 Rubber Ducky",
description = "Blip Name here",
radius = 0,
sprite = 64,
color = 2,
scale = 1.0,
length = 3,
})
Table Arguements:
displayCode -- The code for the alert ( 10-4, 10-11, 400-9, etc)
message -- Alert message
gender -- TRUE/FALSE to enable gender data on the alert
plate -- Plate of a vehicle
priority -- Priority of the alert
firstColor -- Color of the vehicle
automaticGunfire -- TRUE/FALSE Automatic weapon
camId -- Camera ID
callsign -- Callsign on the player
name -- Name of the player
doorCount -- Number of doors the vehicle has
heading -- Heading of an entity
description -- Name of the blip
radius -- if the blip has a radius
recipientList -- { "police", "ems", "pbso" } Jobs that get the alert
blipSprite -- Blip Sprite
blipColour -- Blip Color
blipScale -- Blip Color
blipLength -- Blip Length : How long it stays on the map
offset -- Offset of the blip
blipflash -- If the blip flashes or not
sound -- GTA sound to play
sound2 -- GTA sound to playDefault Examples
Default qb-bankrobbery
qb-bankrobbery/client/fleeca.lua
Find: Around line 273
Replace for:
qb-bankrobbery/client/pacific.lua
Find: Around Line 51 & Line 93
Replace for:
qb-bankrobbery/client/paleto.lua
Find: Around Line 42
Replace for:
Default qb-storerobbery
qb-storerobbery/client/main.lua
Find: Around Line 90
Replace for:
Find for: Line 151 & 168
Replace for:
Default qb-jewelery
qb-jewelery/client/main.lua
Find: Around Line 82
Replace for:
Find: Around Line 54
Replace for:
Thanks to NoobySloth for the default examples above.
Last updated