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-bus-job/hooks.lua (unencrypted). Hooks live under the ApexBusJob.Hooks namespace.
Side: client. Default lib.notify, falls back to ESX.ShowNotification.
Side: server. Default xPlayer.showNotificationesx:showNotification.
Side: client. Default lib.showTextUI with native fallback.
Side: client. Default lib.hideTextUI.
Side: server. Default no-op. Wire into your quest / pause-menu system.
Side: server. Return true (allowed) / false, reasonKey. Default returns nil, which falls back to the resource’s built-in ox_inventory driver-license search. Set Config.RequireLicense = false to skip the check.
function ApexBusJob.Hooks.HasBusLicense(source)
    local hasLicense = exports['my-license-system']:hasBusLicense(source)
    if not hasLicense then return false, 'no_bus_license' end
    return true
end