NX Spawn Selector
Configuration
New characters, Last Location, the preview camera and text.
Everything is configured in config.lua. Restart the resource after making changes. Spawn points have their own page: Locations.
New characters
config.lua
Config.NewCharacters = trueConfig.NewCharactersbooleandefault: trueShow the selector to brand-new characters after they finish making their look.
false sends new characters to the ESX default spawn like normal.Last Location
config.lua
Config.LastLocation = {
enabled = true,
icon = 'fa-solid fa-clock-rotate-left',
scene = { scenario = 'WORLD_HUMAN_STAND_MOBILE' },
}enabledbooleandefault: trueAdds a Last Location option at the start of the list, so returning characters can spawn where they logged out. Never shown to new characters.
iconstringdefault: 'fa-solid fa-clock-rotate-left'Font Awesome 6 icon.
scenetableWhat the character does in the preview. See scenes.
Preview camera
The camera films the character from the front at each spawn point, starting slightly further back and gliding in.
config.lua
Config.Preview = {
distance = 4.2,
height = 0.3,
lookHeight = -0.5,
fov = 45.0,
pushIn = 0.8,
defaultScene = { anim = { dict = 'anim@heists@heist_corona@single_team', clip = 'single_team_loop_boss' } },
}distancenumberdefault: 4.2How far in front of the character the camera sits.
heightnumberdefault: 0.3Camera height.
0 is waist level.lookHeightnumberdefault: -0.5Where the camera aims. Lower values put the character higher on screen, above the selector panel.
fovnumberdefault: 45.0Field of view. Lower is more zoomed in.
pushInnumberdefault: 0.8How much further back the camera starts before gliding in over about 4 seconds.
0 turns it off.defaultScenetableScene used for any location without its own
scene.Framing tips
- Character hidden behind the panel? Lower
lookHeight, for example to-0.7. - Want a full-body shot? Raise
distanceto around5.5. - For a closer, more cinematic feel, lower
fovto around35.0and raisedistancea little.
Text
Every piece of text in the selector is in Config.Locale. Translate or reword anything you like.
config.lua
Config.Locale = {
title = 'Choose Spawn',
subtitle = 'Where do you want to wake up?',
spawn = 'Spawn Here',
last_location = 'Last Location',
last_location_desc = 'Pick up where you left off',
last_location_tag = 'Recent',
}