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-brewing-job/hooks.lua (unencrypted).

Client hooks

Default uses lib.showTextUI. Replace with your own help-notify resource.
Default lib.hideTextUI.
Default lib.notify. alertType is one of success | error | inform | warning.
Default SetVehicleFuelLevel(vehicle, 100.0). Wire fuel and vehiclekeys here.
function Hooks.OnWorkVehicleSpawned(vehicle)
    exports['lc_fuel']:SetFuel(vehicle, 100.0)
    TriggerEvent('vehiclekeys:client:SetOwner', GetVehicleNumberPlateText(vehicle))
end

Server hooks

Default prints a warning. Wire into your anti-cheat / ban system.
Called after a successful beer extraction. Wire into your quest system.
Called after a successful delivery payout for career stats.
Default delegates to xPlayer.canCarryItem.
Default delegates to xPlayer.addInventoryItem.
Default delegates to xPlayer.removeInventoryItem.
Default delegates to xPlayer.getInventoryItem.