Tu veux modifier les points d’apparition par défaut ou en ajouter d’autres ? La gestion des points d’apparition dans le framework ESX se fait via es_extended. Découvre ci-dessous comment les personnaliser.
Les points d’apparition se configurent dans le fichier main.lua de es_extended (../es_extended/shared/config/). Tu peux modifier ce fichier via FTP. Si tu ne sais pas encore comment fonctionne le FTP, consulte notre guide sur l’accès FTP.
La configuration par défaut des points d’apparition ressemble à ceci :
Config.DefaultSpawns = { -- Wenn du mehr Spawnpositionen möchtest und diese zufällig auswählen willst, entferne die Kommentarzeichen oder füge weitere Orte hinzu
{ x = 222.2027, y = -864.0162, z = 30.2922, heading = 1.0 },
--{x = 224.9865, y = -865.0871, z = 30.2922, heading = 1.0},
--{x = 227.8436, y = -866.0400, z = 30.2922, heading = 1.0},
--{x = 230.6051, y = -867.1450, z = 30.2922, heading = 1.0},
--{x = 233.5459, y = -868.2626, z = 30.2922, heading = 1.0}
}
Pour ajouter d’autres points d’apparition, il te suffit d’ajouter une entrée dans le fichier de configuration :
Config.DefaultSpawns = { -- Wenn du mehr Spawnpositionen möchtest und diese zufällig auswählen willst, entferne die Kommentarzeichen oder füge weitere Orte hinzu
{ x = 222.2027, y = -864.0162, z = 30.2922, heading = 1.0 },
--{x = 224.9865, y = -865.0871, z = 30.2922, heading = 1.0},
--{x = 227.8436, y = -866.0400, z = 30.2922, heading = 1.0},
--{x = 230.6051, y = -867.1450, z = 30.2922, heading = 1.0},
--{x = 233.5459, y = -868.2626, z = 30.2922, heading = 1.0}
--{x = 766.5239, y = -112.0400, z = 30.2922, heading = 1.0} // NEUER SPAWN
}
Pour connaître les coordonnées actuelles, tu as besoin d’une ressource adaptée. Tu trouveras différents outils sur Internet : choisis simplement celui qui te convient le mieux. :)
