Source: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.
apex-brewing-job/hooks.lua (unencrypted).
Client hooks
Hooks.ShowHelpPrompt(key, text)
Hooks.ShowHelpPrompt(key, text)
Default uses
lib.showTextUI. Replace with your own help-notify resource.Hooks.HideHelpPrompt(key)
Hooks.HideHelpPrompt(key)
Default
lib.hideTextUI.Hooks.ClientAlert(title, message, duration, alertType)
Hooks.ClientAlert(title, message, duration, alertType)
Default
lib.notify. alertType is one of success | error | inform | warning.Hooks.OnWorkVehicleSpawned(vehicle)
Hooks.OnWorkVehicleSpawned(vehicle)
Default
SetVehicleFuelLevel(vehicle, 100.0). Wire fuel and vehiclekeys here.Server hooks
Hooks.BanPlayer(source, reason)
Hooks.BanPlayer(source, reason)
Default prints a warning. Wire into your anti-cheat / ban system.
Hooks.OnQuestProgress(source, questId, count)
Hooks.OnQuestProgress(source, questId, count)
Called after a successful beer extraction. Wire into your quest system.
Hooks.OnDeliveryCompleted(source, payout)
Hooks.OnDeliveryCompleted(source, payout)
Called after a successful delivery payout for career stats.
Hooks.CanCarryItem(xPlayer, item, count)
Hooks.CanCarryItem(xPlayer, item, count)
Default delegates to
xPlayer.canCarryItem.Hooks.AddInventoryItem(xPlayer, item, count)
Hooks.AddInventoryItem(xPlayer, item, count)
Default delegates to
xPlayer.addInventoryItem.Hooks.RemoveInventoryItem(xPlayer, item, count)
Hooks.RemoveInventoryItem(xPlayer, item, count)
Default delegates to
xPlayer.removeInventoryItem.Hooks.GetInventoryItem(xPlayer, item)
Hooks.GetInventoryItem(xPlayer, item)
Default delegates to
xPlayer.getInventoryItem.