getWarns
exports["RiP-Admin"]:getWarns()
This function returns all server warns
Returned Table
Name | Type | Explenation |
---|---|---|
warnId | Identifier | unique warn id |
identifier | String | player identifier |
reason | String | warn reason |
date | Integer | warn timestamp |
staff.identifier | String | staff member identifier |
Example
local warns = exports["RiP-Admin"]:getWarns()
for r,p in pairs(warns) do
print(p.warnId)
end