A small ULX addon that will print (to console) all currently registered server hooks, organized by priority. Useful in determining hook precedence, especially with the recent changes in hook priority management in ULib.
Note that this requires a recent ULib (4/11), as it relies on the newly added GetULibTable() function. If this function isn't present, it will be noted in the console.
Default access is superadmin.
Installation: Install to your addons folder.
Requires: ULib / ULX
Usage: "ulx serverhookinfo" from console or UI.
Output (sample):
Event: PlayerNoClip
Priority: -1
Hook: ULibNoclipCheck Location: addons/ulib/lua/ulib/server/player_ext.lua
Event: CheckPassword
Priority: 0
Hook: CAC.CheckPassword Location: addons/cac-release-20150413/lua/cac/controllers/liveplayersessioncontroller.lua
Event: CanTool
Priority: -1
Hook: ULibPlayerToolCheck Location: addons/ulib/lua/ulib/server/player_ext.lua
Hook: ULibEntToolCheck Location: addons/ulib/lua/ulib/server/entity_ext.lua
To do: Add reference to source file of hook. Added in 1.1
Send output to calling client console Added in 1.1