Dispatch
Police alert and dispatch customization located in custom/client/dispatch.lua.
DrugSellDispatch
Triggered automatically on the client when a police alert chance succeeds during NPC drug sales.
Supported Dispatch Systems
qs-dispatch: viaDrugSaleexport.ps-dispatch: viaDrugSaleexport.cd_dispatch: viaAddNotificationserver event.core_dispatch: viaaddCallexport.rcore_dispatch: viasendAlertserver event.op-dispatch: viaCustomAlertexport.aty_dispatch: viaSendDispatchexport.origen_police: viaSendAlertexport.tgiann-mdw: viaaddDispatchexport.tk_dispatch: viaaddCallexport.wf-alerts: viasvNotifyserver event.lb-phone: viasendJobNotificationserver event.- Fallback: via default
ak47_drugmanagerv3:policeAlertserver event.
Example Customization
DrugSellDispatch = function()
local ped = PlayerPedId()
local playerCoords = GetEntityCoords(ped)
local streetHash, _ = GetStreetNameAtCoord(playerCoords.x, playerCoords.y, playerCoords.z)
local street = GetStreetNameFromHashKey(streetHash)
if GetResourceState('ps-dispatch') == 'started' then
exports['ps-dispatch']:DrugSale()
else
TriggerServerEvent('ak47_drugmanagerv3:policeAlert', playerCoords, street)
end
endOn this page