Skip to main content
fivemora-core/modules/auto-detect includes optional hooks that activate when matching resources are running.

Included modules

baseevents

File: modules/auto-detect/baseevents/sv_death_logs.lua
  • Hooks baseevents:onPlayerDied
  • Hooks baseevents:onPlayerKilled
  • Writes to deaths category

ox_inventory

File: modules/auto-detect/ox_inventory/swap-item-hooks.lua
  • Registers ox_inventory swapItems hook
  • Classifies item movement into event types:
    • pickup
    • drop
    • give
    • stash_put
    • stash_take
    • swap
    • move
  • Writes to items category

Framework money hooks

  • modules/auto-detect/es_extended/money-hooks.lua
  • modules/auto-detect/qb-core/money-hooks.lua
These convert framework money change events into:
  • Fivemora:MoneyAdded
  • Fivemora:MoneyRemoved
  • Fivemora:MoneySet

txAdmin

Files under modules/auto-detect/txAdmin hook:
  • ban events
  • kick events
  • warn events
  • action revoke events
These are forwarded to Fivemora admin/ban handlers.

Resource load lifecycle

Core tracks resource start/stop and runs OnResourceLoad / OnResourceUnload handlers. This is how hooks are attached/removed safely.

Notes

  • Hooks only run if source resources are active.
  • If a resource is missing, no error is required; that integration simply stays inactive.