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-pilot-job/hooks.lua (unencrypted).
Client hooks
Hooks.ShowHelpPrompt(key, text)
Hooks.ShowHelpPrompt(key, text)
Default
lib.showTextUI.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 ∈ success | error | info | warning.Hooks.OnVehicleSpawn(plate)
Hooks.OnVehicleSpawn(plate)
Default
TriggerEvent('vehiclekeys:client:SetOwner', plate).Hooks.PutOnUniform(clothing)
Hooks.PutOnUniform(clothing)
Default uses
skinchanger:getSkin + skinchanger:loadClothes. Receives the per-gender outfit table.Hooks.TakeOffUniform()
Hooks.TakeOffUniform()
Default reloads the original skin via
esx_skin:getPlayerSkin.Server hooks
Hooks.HasFlightLicense(source)
Hooks.HasFlightLicense(source)
Returns
hasLicense (bool), errorKey (string). Default checks an ox_inventory item with extraDataContent containing the license class. Setting Config.RequireFlightLicense = false short-circuits to true.Hooks.UpdateQuestProgress(source, questName, amount)
Hooks.UpdateQuestProgress(source, questName, amount)
Default no-op. Wire into your quest / progression resource.
Hooks.ServerAlert(source, title, message, duration, alertType)
Hooks.ServerAlert(source, title, message, duration, alertType)
Default
TriggerClientEvent('apex-pilot-job:client:alert', source, ...).Hooks.OnPilotDisconnected(citizenId, currentStrikes, didBlacklist)
Hooks.OnPilotDisconnected(citizenId, currentStrikes, didBlacklist)
Called on disconnect mid-flight. Use for anti-abuse logging.
Hooks.OnPilotCrashed(source, citizenId)
Hooks.OnPilotCrashed(source, citizenId)
Called when a player’s aircraft is destroyed mid-flight (always blacklists).