GET · api v1
Head counts for a قطاع: members by status, on vacation today and hired this week.
إحصائيات القطاع: الأعضاء حسب الحالة، اللي في إجازة اليوم، والمعيّنين هذا الأسبوع.
| Name | Type | Required | Description |
|---|---|---|---|
faction | string | required | The in-game job name linked to the قطاع, e.g. "police". |
res.data)| Name | Type | Description |
|---|---|---|
total | number | All members. |
by_status | table | { active, on_vacation, resigned, terminated, retired } |
hired_this_week | number | New hires since Monday. |
local res = exports.OrcaBot_V3:Get('faction.stats', { faction = 'police' })
{
"ok": true,
"data": {
"total": 48,
"by_status": {
"active": 41,
"on_vacation": 3,
"resigned": 2,
"terminated": 1,
"retired": 1
},
"hired_this_week": 2
},
"meta": {
"action": "faction.stats",
"method": "GET",
"api": 1
}
}