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-ffa/hooks.lua (unencrypted).
Server hooks
Hooks.HasAdminPermission(source)
Hooks.HasAdminPermission(source)
Config.AdminGroups.Hooks.HasAntiJoinProtection(source)
Hooks.HasAntiJoinProtection(source)
true to block the player from joining a zone / lobby. Default false.Hooks.OnCheatDetected(source, reason)
Hooks.OnCheatDetected(source, reason)
DropPlayer(source, reason). Wire to your anti-cheat ban resource.Hooks.GiveItem(source, item, count)
Hooks.GiveItem(source, item, count)
xPlayer.addInventoryItem(item, count or 1).Hooks.SavePlayerPosition(identifier, pos)
Hooks.SavePlayerPosition(identifier, pos)
UPDATE users SET position = ? WHERE identifier = ? (ESX legacy).Hooks.ResolveOfflineName(identifier)
Hooks.ResolveOfflineName(identifier)
SELECT firstname, lastname FROM users WHERE identifier = ?.Hooks.OnPlayerKill(killerId, victimId, zoneId, isLobby)
Hooks.OnPlayerKill(killerId, victimId, zoneId, isLobby)
killerId may be nil for suicide/environment.Hooks.OnLobbyEnd(lobbyId, winningTeam, players, mvp)
Hooks.OnLobbyEnd(lobbyId, winningTeam, players, mvp)
Hooks.ReviveWithoutTimeout(source, xPlayer)
Hooks.ReviveWithoutTimeout(source, xPlayer)
TriggerClientEvent('esx_ambulancejob:revive', source).Hooks.Notify(source, message, type)
Hooks.Notify(source, message, type)
TriggerClientEvent('esx:showNotification', source, message).Client hooks
Hooks.ShowHelpText / HideHelpText
Hooks.ShowHelpText / HideHelpText
lib.showTextUI / lib.hideTextUI.Hooks.ShowClientNotify(message, type)
Hooks.ShowClientNotify(message, type)
ESX.ShowNotification, falls back to lib.notify.Hooks.SetCombatMode(enabled)
Hooks.SetCombatMode(enabled)
Hooks.SetHudVisibility(visible)
Hooks.SetHudVisibility(visible)
Hooks.HasTimeout()
Hooks.HasTimeout()
false. Return true if the local player currently has a combat / death timeout.Hooks.IsPlayerDead()
Hooks.IsPlayerDead()
IsEntityDead / IsPedDeadOrDying / LocalPlayer.state.isDead.Hooks.SetInventoryBlocked(blocked)
Hooks.SetInventoryBlocked(blocked)
ox_inventory:weaponWheel and the invBusy / invHotkeys state bags.