UgCore.Hooks.Register. Every name below is UgCore.Enums.Hooks.<Group>.<Key>: use the enum, never the string. Return false to cancel. The cancelled function returns UgCore.Enums.Errors.NoPermission.
“Reads changes” lists the fields ug-core reads back from a returned table. Other hooks only allow or cancel.
Notes
Players:BeforeBleedoutcancelled means the bleedout retries later. Use it to keep a player downed during CPR.Guard:BeforeActionactionis aUgCore.Enums.GuardActionsvalue:Warn,KickorBan. A hook MAY lower it, such asBantoKick, never raise it.flagsare the recent flags, oldest first.Characters:BeforeCreateMAY filldata, for example a starting phone number.