Register
server.lua
Order
0. Ties run in registration order.
Safety
- A crashing handler is logged and skipped. It never cancels, so a bug cannot block core actions.
- Hooks belong to the resource that registered them, and are removed when it stops.
- Unknown hook names raise with a suggestion:
Did you mean "Players:BeforeDown"? UgCore.Hooks.Unregister(id)removes one.
Every hook
Cancelled actions return
false, 'no_permission' to the caller.