Replace default police alert
Event
RegisterNetEvent("farming_creator:alertedPolice", function(coords, message)
end)Parameters
Name
Data Type
Description
Example
-- Disables the default police alert
RegisterNetEvent("farming_creator:framework:ready", function()
exports["farming_creator"]:disableScriptEvent("farming_creator:alertedPolice")
end)
RegisterNetEvent("farming_creator:alertedPolice", function(coords, message)
-- Do something
end)Where to insert the code?
Last updated