Want to change the default spawnpoints or add new ones? Managing spawnpoints in the ESX framework is done via es_extended. Below, you'll learn how to customize them.
Spawnpoints are set in the main.lua configuration file of es_extended (../es_extended/shared/config/). You can edit this file via FTP. If you’re not familiar with FTP yet, we recommend checking out our FTP Access guide.
The default spawnpoint configuration looks like this:
Config.DefaultSpawns = { -- If you want more spawn locations and want them to be chosen randomly, remove the comment marks or add more spots
{ 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}
}
If you want to add more spawnpoints, simply add another entry in the configuration file:
Config.DefaultSpawns = { -- If you want more spawn locations and want them to be chosen randomly, remove the comment marks or add more spots
{ 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} // NEW SPAWN
}
Determining Coordinates To find the current coordinates, you need a suitable resource. You can find various tools online – just pick the one you like best. :)