Spawn Selector V2
Modern Cinematic Spawn Selector for RedM (VORP)
Introduction
cas-spawnv2 is a modern, cinematic spawn selection system built for RedM servers running VORP. It replaces standard spawning with a stylish UI where players can choose from customized locations, each with its own background image, logo, description, and coordinates.
The script is plug-and-play, easy to configure, and fully automated with VORP’s character events.
Installation
Add the resource to your server:
cas-spawnv2Add it to your
server.cfg:
ensure cas-spawnv2The UI will load automatically. No server-side configuration is required.
Configuration
All configuration is handled in:
config/client_config.luaThe sections below explain each setting in a simple and practical way.
Config.debug
Config.debugEnables developer/debug mode.
Allows opening the spawn menu manually using a command.
Recommended for development. Set to
falsefor live servers.
Config.debugCommand
Config.debugCommandThe command used to open the spawn UI manually when debug mode is enabled.
Example:
Config.onlyOnFirstLogin
Config.onlyOnFirstLoginControls when the spawn menu is shown:
false→ Show the spawn menu every time the player joins.true→ Show only when the character is created for the first time.
The script integrates automatically with VORP events.
Config.LastLocationText
Config.LastLocationTextIf the player has a saved location in VORP (last known coords), the script adds a Last Location card to the spawn UI.
This text is the description displayed on that card.
Config.locations
Config.locationsThis table defines all spawn locations displayed in the UI.
Example:
Below is a simple explanation of each field.
useImage
useImagefalse→ The UI uses a cinematic camera orbit around the coordinates.true→ A static background image is used instead (no camera movement).
backgroundImage
backgroundImageThe background image shown behind the location card.
Must match an image inside the UI assets (name only, no extension).
Used when:
useImage = true, orAs a decorative background while previewing locations.
coords
coordsThe actual spawn position.
x, y, z→ world coordinatesh→ heading/player facing direction
The cinematic camera also orbits this position.
locationText
locationTextThe description text shown on the location card.
locationLogo
locationLogoThe logo/image shown on the card header.
How the Spawn Works (Simple Overview)
When the player joins, the script checks whether the spawn UI should appear based on
Config.onlyOnFirstLogin.The player is frozen, hidden, and made invincible.
The spawn menu opens with all configured locations.
If “Last Location” is available, it appears automatically.
When the player selects a location:
The UI fades out
The player is teleported to the location
Heading is applied
The UI closes and the player resumes normal gameplay
Everything is fully automated—no extra setup is required.
Last updated