Skip to main content

getBans

exports["RiP-Admin"]:getBans() 

This function returns all server bans

Returned Table

NameTypeExplenation
banIdIntegerunique ban id
identifierStringplayer identifier
reason1Stringofficial reason
reason2Stringprivate reason
durationIntegerban duration timestamp
dateIntegerban timestamp
activeBooleanis ban still active
staff.identifierStringstaff member identifier

Example

local bans = exports["RiP-Admin"]:getBans() 
for r,p in pairs(bans) do
print(p.banId)
end