Administration - Submodules/Logs¶
This page documents the hooks defined by the submodules/logs submodule in the administration module.
CanPlayerSeeLogCategory(client, category)View Source
Purpose
Determines whether a player is allowed to see a specific translated log category.
Realm
Client / Server
Parameters
Player client The player whose category visibility should be checked.
string category The translated log category name being evaluated.
Returns
boolean|nil Return false to hide the category from the player.
CanPlayerSeeLogs(client)View Source
OnServerLog(client, logType, logString, category)View Source
Purpose
Called whenever a server log entry is created through lia.log.add.
Realm
Server
Parameters
Player client The player associated with the log entry. May be invalid or nil for console/system logs.
string logType The internal log type identifier used to generate the log message.
string logString The final formatted log message.
string category The translated category name assigned to the log entry.