allAduty
exports["RiP-Admin"]:allAduty(callback)
This function returns all players in aduty mode
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
callback | Function | Yes | retuns aduty state |
Returned Table
Name | Type | Explenation |
---|---|---|
source | Integer | player source |
identifier | String | player identifier |
aduty | Boolean | is in aduty mode |
time | Integer | aduty mode stated timestamp |
Example
exports["RiP-Admin"]:allAduty(function(callback)
for r,p in pairs(callback) do
print("Player Source:", p.source, "Aduty State:", p.aduty)
end
end)
local allAduty = exports["RiP-Admin"]:allAduty()
for r,p in pairs(allAduty) do
print("Player Source:", p.source, "Aduty State:", p.aduty)
end