Module sv_debug

Debug System

Functions

Print (addonName, ...) Print function.
GetDebug (addonName) GetDebug function.

Commands

setdebug SetDebug Command.


Functions

Print (addonName, ...)
Print function. This function prints a message to the console.

Parameters:

  • addonName The addon name. string
  • ... The message. any

Usage:

    exports.sd_util:Print("sd_util", "Hello World")
GetDebug (addonName)
GetDebug function. This function gets the debug state of an addon.

Parameters:

  • addonName The addon name. string

Returns:

    boolean

Usage:

    local debug = exports.sd_util:GetDebug("sd_util")

Commands

setdebug
SetDebug Command. This command sets the debug state of an addon.

param:

  • addonName The addon name. string
  • enabled The debug state. boolean
  • src The player to send the debug state to. number

Usage:

    /setdebug sd_util true
generated by LDoc 1.5.0 Last updated 2023-11-28 19:34:18