Replace default police alert
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Triggered when police is alerted, this is triggered on each police player client, if you are looking for a single event, check the server side category
RegisterNetEvent("vehicles_keys:alertedPolice", function(coords, message)
end)
coords
vector3
Coordinates where a player tried to sell drugs
message
string
The message the cop will see
-- Disables the default police alert
RegisterNetEvent("vehicles_keys:framework:ready", function()
exports["vehicles_keys"]:disableScriptEvent("vehicles_keys:alertedPolice")
end)
RegisterNetEvent("vehicles_keys:alertedPolice", function(coords, message)
-- Do something
end)
You can place it in the file integrations/cl_integrations.lua
of the script, at the bottom of the file on new lines