Skip to content

Replace default police alert

Triggered when police is alerted

Event

RegisterNetEvent("robberies_creator:alertedPolice", function(coords, message)

end)

Parameters

Name Data Type Description
coords vector3 Coordinates where a player tried to sell drugs

Example

-- Disables the default police alert
RegisterNetEvent("robberies_creator:framework:ready", function() 
    exports["robberies_creator"]:disableScriptEvent("robberies_creator:alertedPolice")
end)

RegisterNetEvent("robberies_creator:alertedPolice", function(coords, message)
    -- Do something
end)

Where to insert the code?

You can place it in the file integrations/cl_integrations.lua of the script, at the bottom of the file on new lines