Summary

Functions

Runs a hook on every cached plugin, module and the schema, then on the gamemode.

Functions

hook.Call(name, gamemode, ...)

shared gamemodes/catwork/gamemode/core/libraries/sh_plugin.lua:711

Runs a hook on every cached plugin, module and the schema, then on the gamemode.

Replaces hook.Call in debug mode. Each hook is called in a pcall; errors are printed and fire OnHookError. The first non-nil return stops the call and is returned. Otherwise the original hook.Call (kept as hook.ClockworkCall) runs the hook.Add hooks and the gamemode.

Parameters

  • name String Name of the hook
  • gamemode Map The gamemode table, passed on to the original hook.Call
  • ... Any Arguments passed to the hook

Returns

  • Any Up to six values returned by the first hook that returned anything

Otherwise gamemodes/catwork/gamemode/core/libraries/sh_plugin.lua:744

When cw.DebugMode does not hold:

Replaces hook.Call outside debug mode. The first non-nil return stops the call and is returned. Otherwise the original hook.Call (kept as hook.ClockworkCall) runs the hook.Add hooks and the gamemode.

Defined in

Defined in