Dispatch

The only dispatch system included by default is ps-dispatch, as it is a free and open-source resource.

If you are using a different dispatch script, you can easily integrate it by editing the sendDispatch function located in: av_boosting/client/editable/_dispatch.lua

This function receives the target vehicle and its class as arguments, providing you with the necessary data to trigger and format your custom police alerts.

av_boosting/client/editable/_dispatch.lua
function sendDispatch(vehicle, className)
    dbug("Sending dispatch for vehicle:", vehicle, "class:", className)
    if GetResourceState("ps-dispatch") == "started" then
        return exports['ps-dispatch']:CarBoosting(vehicle)
    end
end

Last updated