Scoreboard

Hook Documentation for Scoreboard Module.

Functions

MODULE:ShouldAllowScoreboardOverride(client, var)

Determines whether a scoreboard value should be overridden.

Parameters

  • client Player

    The player entity being checked.

  • var String

    The variable being checked for override (e.g., "name" or "desc").

Returns

  • boolthe

    variable should be overridden, false otherwise.

MODULE:ShouldShowPlayerOnScoreboard(client)

Determines whether a player should be shown on the scoreboard.

Parameters

  • client Player

    The player entity to be evaluated.

Returns

  • bool

    True if the player should be shown on the scoreboard, false otherwise.

MODULE:ShowPlayerOptions(client, options)

Provides options for the player context menu on the scoreboard.

Parameters

  • client Player

    The player entity for whom the options are being provided.

  • options Table

    A table to which new options can be added. Each option should be a table with the format {icon, callback}.