core.plugins.lite_character.sh_debug
Lite Character System -- debug/diagnostic logging. Toggle with the "litecharacter_debug" ConVar. Because this file is shared, CreateConVar here makes two independent ConVars: a server one (toggle from server console/RCON for server-console diagnostics) and a per-client one (each player can toggle their own console output). DebugToPlayer lets a player self-report exactly what happened without needing server console access -- just have them set litecharacter_debug 1, reproduce the issue, and paste their console output.
- Sharedcityrp.litecharacter.Debug(fmt, _)Source ☍
-
Prints to this realm's own console only, when enabled.
Parameters
- fmtstringstring.format-style format string.
- unknown
- Sharedcityrp.litecharacter.DebugEnabled() → booleanSource ☍
-
Returns
- boolean
- Sharedcityrp.litecharacter.DebugToPlayer(ply, fmt, _)Source ☍
-
Server-only diagnostics: prints to the server console AND the given player's own console (via net message), so a player can self-report full diagnostics without needing server console/RCON access. Client-side calls (ply omitted/invalid) just print locally.
Parameters
- plyPlayer|nilThe player metatable, with CityRP's own additions to Garry's Mod's
Player. - fmtstring
- unknown
- plyPlayer|nilThe player metatable, with CityRP's own additions to Garry's Mod's
- Sharedcityrp.litecharacterSource ☍