getWarn
exports["RiP-Admin"]:getWarn(warnId)
This function returns a specific warn by it's id
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
warnId | Integer | No | unique warn id |
Returned Table
Name | Type | Explenation |
---|---|---|
identifier | String | player identifier |
reason | String | warn reason |
date | Integer | warn timestamp |
staff.identifier | String | staff member identifier |
Example
local warn = exports["RiP-Admin"]:getWarn(999999)
if warn then
print("Warn reason:", warn.reason)
else
print("Warn not found")
end