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

  1. Add the resource to your server:

cas-spawnv2
  1. Add it to your server.cfg:

ensure cas-spawnv2
  1. The UI will load automatically. No server-side configuration is required.


Configuration

All configuration is handled in:

config/client_config.lua

The sections below explain each setting in a simple and practical way.


Config.debug

  • Enables developer/debug mode.

  • Allows opening the spawn menu manually using a command.

  • Recommended for development. Set to false for live servers.


Config.debugCommand

The command used to open the spawn UI manually when debug mode is enabled.

Example:


Config.onlyOnFirstLogin

Controls 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

If 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

This table defines all spawn locations displayed in the UI.

Example:

Below is a simple explanation of each field.


useImage

  • false → The UI uses a cinematic camera orbit around the coordinates.

  • true → A static background image is used instead (no camera movement).


backgroundImage

  • The background image shown behind the location card.

  • Must match an image inside the UI assets (name only, no extension).

Used when:

  • useImage = true, or

  • As a decorative background while previewing locations.


coords

The actual spawn position.

  • x, y, z → world coordinates

  • h → heading/player facing direction

The cinematic camera also orbits this position.


locationText

The description text shown on the location card.


The 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