Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.apex-services.site/llms.txt

Use this file to discover all available pages before exploring further.

Source: apex-polizeicomputer/hooks.lua (unencrypted).

Client hooks

Default lib.showTextUI(text, { position = 'right-center' }).
Default lib.hideTextUI.
Default lib.notify.
Default no-op. Hook your voice system.
function Hooks.SetRadioChannel(channel)
    exports['saltychat']:SetRadioChannel(channel)
end

Server hooks

Default no-op. Wire to your dispatch resource.
function Hooks.OnDispatchUpdate(externalDispatchId, status)
    if exports['bg-dispatch'] then
        exports['bg-dispatch']:UpdateDispatchFromDGL(externalDispatchId, status)
    end
end
Default lib.logger.
Default TriggerClientEvent('apex-polizeicomputer:client:notify', source, ...).