QBCore
Récupérer tous les citoyens QBCore
Retourne la liste de tous les citoyens enregistrés dans QBCore
Copy
curl --request GET \
--url https://votre-domaine.com/qbcore/citizens
Copy
{
"success": true,
"data": [
{
"id": 123,
"citizenid": "<string>",
"license": "<string>",
"name": "<string>",
"money": {
"cash": 123,
"bank": 123,
"crypto": 123
},
"charinfo": {
"firstname": "<string>",
"lastname": "<string>",
"birthdate": "2023-12-25",
"nationality": "<string>",
"gender": "<string>",
"phone": "<string>",
"account": "<string>",
"cid": "<string>"
},
"job": {
"name": "<string>",
"label": "<string>",
"type": "<string>",
"isboss": true,
"onduty": true,
"grade": {
"name": "<string>",
"level": 123,
"payment": 123,
"isboss": true
},
"payment": 123
},
"gang": {
"name": "<string>",
"label": "<string>",
"isboss": true,
"grade": {
"name": "<string>",
"level": 123,
"isboss": true
}
},
"position": {
"x": 123,
"y": 123,
"z": 123
},
"metadata": {
"hunger": 50,
"thirst": 50,
"stress": 50,
"armor": 50,
"isdead": true,
"ishandcuffed": true,
"inlaststand": true,
"tracker": true,
"injail": 123,
"bloodtype": "<string>",
"fingerprint": "<string>",
"walletid": "<string>",
"callsign": "<string>",
"licences": {
"driver": true,
"weapon": true,
"business": true
},
"criminalrecord": {
"hasRecord": true
},
"phonedata": {
"SerialNumber": 123,
"InstalledApps": [
"<string>"
]
}
},
"inventory": [
{
"name": "<string>",
"count": 123,
"slot": 123,
"metadata": {
"durability": 50,
"ammo": 1,
"serial": "<string>",
"registered": "<string>",
"components": [
"<string>"
]
}
}
],
"last_updated": "2023-11-07T05:31:56Z"
}
],
"total": 123
}
Response
200
application/json
Liste des citoyens récupérée avec succès
The response is of type object
.
Copy
curl --request GET \
--url https://votre-domaine.com/qbcore/citizens
Copy
{
"success": true,
"data": [
{
"id": 123,
"citizenid": "<string>",
"license": "<string>",
"name": "<string>",
"money": {
"cash": 123,
"bank": 123,
"crypto": 123
},
"charinfo": {
"firstname": "<string>",
"lastname": "<string>",
"birthdate": "2023-12-25",
"nationality": "<string>",
"gender": "<string>",
"phone": "<string>",
"account": "<string>",
"cid": "<string>"
},
"job": {
"name": "<string>",
"label": "<string>",
"type": "<string>",
"isboss": true,
"onduty": true,
"grade": {
"name": "<string>",
"level": 123,
"payment": 123,
"isboss": true
},
"payment": 123
},
"gang": {
"name": "<string>",
"label": "<string>",
"isboss": true,
"grade": {
"name": "<string>",
"level": 123,
"isboss": true
}
},
"position": {
"x": 123,
"y": 123,
"z": 123
},
"metadata": {
"hunger": 50,
"thirst": 50,
"stress": 50,
"armor": 50,
"isdead": true,
"ishandcuffed": true,
"inlaststand": true,
"tracker": true,
"injail": 123,
"bloodtype": "<string>",
"fingerprint": "<string>",
"walletid": "<string>",
"callsign": "<string>",
"licences": {
"driver": true,
"weapon": true,
"business": true
},
"criminalrecord": {
"hasRecord": true
},
"phonedata": {
"SerialNumber": 123,
"InstalledApps": [
"<string>"
]
}
},
"inventory": [
{
"name": "<string>",
"count": 123,
"slot": 123,
"metadata": {
"durability": 50,
"ammo": 1,
"serial": "<string>",
"registered": "<string>",
"components": [
"<string>"
]
}
}
],
"last_updated": "2023-11-07T05:31:56Z"
}
],
"total": 123
}
Assistant
Responses are generated using AI and may contain mistakes.