Spawn Selector
Configure where and how players spawn after selecting a character.
๐ฏ Spawn Configuration
Located in config/config.lua:
Config.ApartmentStart = false
Config.NewPlayerSpawnCoords = vec4(-1037.74, -2737.75, 20.17, 327.06)
Config.SkipSpawnSelector = true
Config.SpawnSelector = '0r-spawn'โ๏ธ Configuration Options
Skip Spawn Selector
Config.SkipSpawnSelector = true -- Skip selector, spawn at last locationtrue
Players spawn directly at their last location
false
Players see the spawn location selector
Spawn Selector Type
Config.SpawnSelector = '0r-spawn' -- Which spawn system to use'0r-spawn'
Built-in spawn selector (recommended)
'qb-spawn'
QBCore's spawn system
'qbx_spawn'
QBox spawn system
'um-spawn'
UM spawn selector
'vms_spawnselector'
VMS spawn selector
'custom'
Use custom export function
New Player Spawn
Where newly created characters spawn:
Format: vec4(x, y, z, heading)
Apartment Start
Enable apartment selection for new characters:
When true, new characters choose their starting apartment from config/apartments.lua.
๐ Spawn Locations
Configure available spawn points in Config.SpawnLocations:
Location Properties
id
number
Unique identifier
label
string
Display name
img
string
Image filename (without extension)
icon
string
FontAwesome icon class
coords
vec4
Spawn coordinates (x, y, z, heading)
๐ผ๏ธ Adding Custom Location Images
Create a 16:9 image (recommended: 400x225 pixels)
Save as PNG in
web/build/imgs/Reference by filename (without .png)
๐ง Custom Spawn Function
For advanced spawn logic, use the custom export:
๐ฎ HUD Integration
Control HUD visibility during spawn selection:
๐ Complete Example
๐ Apartment Configuration
See the dedicated apartments page:
Last updated