Skip to main content
Register with 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:BeforeBleedout cancelled means the bleedout retries later. Use it to keep a player downed during CPR.
  • Guard:BeforeAction action is a UgCore.Enums.GuardActions value: Warn, Kick or Ban. A hook MAY lower it, such as Ban to Kick, never raise it. flags are the recent flags, oldest first.
  • Characters:BeforeCreate MAY fill data, for example a starting phone number.