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-aduty/hooks.lua (unencrypted).
Hooks.OnAdutyStateChanged(isNowActive)
Hooks.OnAdutyStateChanged(isNowActive)
Side: client. Fires when aduty is entered or left. Default no-op — wire up HUD changes, sounds, etc.
Hooks.OnNoclipStateChanged(isNowActive)
Hooks.OnNoclipStateChanged(isNowActive)
Side: client. Fires when noclip is toggled. Default no-op.
Hooks.OnInvisibleStateChanged(isNowInvisible)
Hooks.OnInvisibleStateChanged(isNowInvisible)
Side: client. Fires on invisibility toggle. Default no-op.
Hooks.OnClientNotify(type, message)
Hooks.OnClientNotify(type, message)
Side: client. Default uses
ESX.ShowNotification and falls back to lib.notify.Hooks.BanPlayer(source, reason, isAutomatic)
Hooks.BanPlayer(source, reason, isAutomatic)
Side: server. Default
DropPlayer(source, reason). Override to integrate with your anti-cheat.Hooks.OnAuditLog(source, category, message, subcategory)
Hooks.OnAuditLog(source, category, message, subcategory)
Side: server. Default
lib.logger. Wire to Discord / your audit pipeline.Hooks.OnServerNotify(targetSource, type, message)
Hooks.OnServerNotify(targetSource, type, message)
Side: server. Default
TriggerClientEvent('esx:showNotification', targetSource, message).