exampleplugin.sv_hooks

(no description)

Functions

ExampleHook(...)

View source »

Example server-side hook function. This function will be automatically called whenever the "ExampleHook" hook is run on the server. (Note: "ExampleHook" is not a standard GMod hook, it would need to be called manually via hook.Run("ExampleHook", ...) somewhere else).

Parameters

  • ...

    Use the plugin's logger for output.

PlayerSay(ply, text, teamOnly)

View source »

Example standard GMod hook: PlayerSay This hook is automatically registered because its name matches a standard hook.

Parameters

  • ply Player

    The player who spoke.

  • text string

    The text they said.

  • teamOnly boolean

    Whether it was team chat.

Returns

  • optional Modified text or nil to allow normal processing.