getBans
exports["RiP-Admin"]:getBans()
This function returns all server bans
Returned Table
Name | Type | Explenation |
---|---|---|
banId | Integer | unique ban id |
identifier | String | player identifier |
reason1 | String | official reason |
reason2 | String | private reason |
duration | Integer | ban duration timestamp |
date | Integer | ban timestamp |
active | Boolean | is ban still active |
staff.identifier | String | staff member identifier |
Example
local bans = exports["RiP-Admin"]:getBans()
for r,p in pairs(bans) do
print(p.banId)
end