πLogs
Here you can use built in log exports
Simple Log Structure
exports["pug-adminmenu"]:SendAdminLog(
source, -- number: server ID of the admin performing the action
actionId, -- string: identifier of the action (ex: "revive_player")
args, -- table: optional metadata used to build the log message
ok, -- boolean: whether the action succeeded
msg, -- string|nil: optional custom log message
targetSrc -- number|nil: server ID of the player the action targeted
)1. Log Example
exports["pug-adminmenu"]:SendAdminLog(
source,
"jail player",
{ reason = "No warrant" },
false,
"Attempted to jail player without warrant",
targetId
)2. Log Example
3. Log Example
Last updated