Getting Started
ESX
Récupérer un citoyen ESX par ID
Retourne les informations détaillées d’un citoyen spécifique
Copy
curl --request GET \
--url https://votre-domaine.com/esx/citizens/{citizenid}
Copy
{
"success": true,
"data": {
"identifier": "<string>",
"firstname": "<string>",
"lastname": "<string>",
"dateofbirth": "2023-12-25",
"sex": "m",
"height": 123,
"job": "<string>",
"job_grade": 123,
"group": "<string>",
"accounts": {
"money": 123,
"bank": 123,
"black_money": 123
},
"inventory": [
{
"name": "<string>",
"count": 123,
"slot": 123
}
],
"loadout": [
{
"name": "<string>",
"ammo": 123
}
],
"metadata": {
"health": 100,
"armor": 50
},
"position": {
"x": 123,
"y": 123,
"z": 123
},
"skin": {
"model": "<string>",
"eyeColor": 123,
"hair": {
"style": 123,
"color": 123,
"highlight": 123
},
"headBlend": {
"shapeFirst": 123,
"shapeSecond": 123,
"shapeMix": 123,
"skinFirst": 123,
"skinSecond": 123,
"skinMix": 123
},
"components": [
{
"component_id": 123,
"drawable": 123,
"texture": 123
}
],
"props": [
{
"prop_id": 123,
"drawable": 123,
"texture": 123
}
],
"headOverlays": {},
"faceFeatures": {},
"tattoos": [
{}
]
},
"status": [
{
"name": "<string>",
"val": 123,
"percent": 50
}
],
"is_dead": true,
"disabled": true,
"last_property": "<string>",
"phone_number": "<string>"
}
}
Path Parameters
ID unique du citoyen
Response
200
application/json
Citoyen trouvé
The response is of type object
.
Copy
curl --request GET \
--url https://votre-domaine.com/esx/citizens/{citizenid}
Copy
{
"success": true,
"data": {
"identifier": "<string>",
"firstname": "<string>",
"lastname": "<string>",
"dateofbirth": "2023-12-25",
"sex": "m",
"height": 123,
"job": "<string>",
"job_grade": 123,
"group": "<string>",
"accounts": {
"money": 123,
"bank": 123,
"black_money": 123
},
"inventory": [
{
"name": "<string>",
"count": 123,
"slot": 123
}
],
"loadout": [
{
"name": "<string>",
"ammo": 123
}
],
"metadata": {
"health": 100,
"armor": 50
},
"position": {
"x": 123,
"y": 123,
"z": 123
},
"skin": {
"model": "<string>",
"eyeColor": 123,
"hair": {
"style": 123,
"color": 123,
"highlight": 123
},
"headBlend": {
"shapeFirst": 123,
"shapeSecond": 123,
"shapeMix": 123,
"skinFirst": 123,
"skinSecond": 123,
"skinMix": 123
},
"components": [
{
"component_id": 123,
"drawable": 123,
"texture": 123
}
],
"props": [
{
"prop_id": 123,
"drawable": 123,
"texture": 123
}
],
"headOverlays": {},
"faceFeatures": {},
"tattoos": [
{}
]
},
"status": [
{
"name": "<string>",
"val": 123,
"percent": 50
}
],
"is_dead": true,
"disabled": true,
"last_property": "<string>",
"phone_number": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.