Documentation › Hunting System › Integrations › Police Dispatch
Send poaching reports to your dispatch resource.
Poaching reports are sent from the poacher's client through bridge/client/dispatch.lua. With dispatch = 'auto' the first running resource is used:
| Resource | Value |
|---|---|
| ps-dispatch | 'ps-dispatch' |
| cd_dispatch | 'cd_dispatch' |
| core_dispatch | 'core_dispatch' |
| qs-dispatch | 'qs-dispatch' |
| rcore_dispatch | 'rcore_dispatch' |
| None of the above | 'builtin': notification + map blip for on-duty police |
Config.Poaching = {
dispatch = 'auto',
code = '10-66',
blip = { sprite = 141, colour = 1, scale = 1.0, radius = 120.0, duration = 120 },
}The reported position is always fuzzy (inside blip.radius), never the poacher's exact spot. If your dispatch doesn't handle the report, the built-in alert is used as a fallback.
Set Config.Poaching.dispatch = 'my-dispatch' and fill in the prepared branch:
elseif mode == 'my-dispatch' then
exports['my-dispatch']:SendAlert({ coords = vec, title = title, message = message, jobs = jobs })
return trueOr add a function to the config (client side). Return true when handled:
Config.Poaching.CustomDispatch = function(coords, title, message)
exports['my-dispatch']:SendAlert(coords, title, message)
return true
end