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 location
Value
Behavior

true

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
Value
Description

'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

Property
Type
Description

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

  1. Create a 16:9 image (recommended: 400x225 pixels)

  2. Save as PNG in web/build/imgs/

  3. 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