The Join Flow#
From the moment a player connects to the moment they stand in the world, this is what they see:
Step | What happens |
|---|---|
1. HUD setup | First join only, with qs-interface: the player sets up their HUD before the menu opens. |
2. Welcome screen | "Welcome to" your server name and a Ready to start button (Enter, Space or a click). The scene loads behind it. |
3. Intro | The camera flies down onto the car meet, where every character the player owns is waiting. |
4. Main menu | Continue, Characters, New character, Rules, Settings, Discord and Disconnect. Each button moves the camera. |
5. Spawn selector | After picking a character, the camera rises into the sky and the player chooses where to wake up. |
6. Arrival | The camera lands behind the player in three stages and an arrival animation plays before they can move. |
Private scene. While choosing, each player is in their own routing bucket (
SelectionBucketOffset+ server id, 2000 by default) and returns toDefaultBucketwhen they spawn. If another script already manages buckets, setConfig.InstanceSelection = false.
The Main Menu#
The buttons live in config/menu.lua and appear in the order you list them. Players use the arrow keys and Enter, or the mouse.
Config.Menu = {
{ action = 'continue', label = 'menu.continue', description = 'menu.continue_desc' },
{ action = 'characters', label = 'menu.characters', description = 'menu.characters_desc' },
{ action = 'create', label = 'menu.create', description = 'menu.create_desc' },
{ action = 'info', label = 'menu.rules', description = 'menu.rules_desc',
text = { 'rules.1', 'rules.2', 'rules.3', 'rules.4', 'rules.5' } },
{ action = 'settings', label = 'menu.settings', description = 'menu.settings_desc' },
{ action = 'link', label = 'menu.discord', description = 'menu.discord_desc', url = 'https://discord.gg/your-server' },
{ action = 'disconnect', label = 'menu.disconnect', description = 'menu.disconnect_desc' },
}Action | What it does |
|---|---|
| Plays the character used last (or the first one). The camera punches in on them and a card shows job, cash, bank and portrait. |
| Opens the character list: the camera cuts between every character on the beat. |
| Opens the identity form. Greyed out when every slot is used. |
| A page of numbered lines from |
| The player's own settings (see below). |
| Opens |
| Leaves the server. |
label and description accept a locale key or plain text. Descriptions can use {last}, {characters} and {slots}. Add hidden = true to hide a button, and add as many info and link buttons as you like.
The character list#
Each character gets a card with portrait, job and grade, cash, bank, birth date, sex, height and nationality. The camera focuses on the selected character, who turns to look at it. Dead characters show a cross, characters in a lapsed monthly slot show a padlock. After the characters come + New character if a slot is free, then any locked slots.
Key | Action |
|---|---|
| Move between characters. |
| Play the selected character. |
| Delete it (the player types the first name to confirm). |
| Back to the main menu. |
Player settings and music#
Under Settings each player sets the music volume, interface sounds and camera motion (turns off the drifting and push-in camera). Their choices are remembered on their PC.
Drop your own .mp3 or .ogg files in music/ and list them. With bpm set to your song's tempo, the camera cuts land on the beat:
Config.Music = {
enabled = true,
tracks = { 'background.mp3' }, -- files in music/, or https links
shuffle = false,
volume = 0.15, -- 0.0 - 1.0
fade = 2000,
bpm = 148, -- camera cuts follow the beat
offset = 0, -- ms until the first beat of the song
}The Character Scene#
config/scene.lua builds the car meet under the freeway: the time (23:40) and weather, the cars, props and NPCs around your characters, where each character stands and every camera shot.
Part | What you can change |
|---|---|
| Cars (model, colours, pearl, neon, lights, open doors, radio), props and NPCs with a scenario or animation. Four cars, a boombox and eight NPCs ship by default. |
| One spot per slot, in order: fixed |
| Where a new character appears while the player fills in the form, and their pose. |
| The intro flight, the background shots, the shot for each menu button, the close-up on a character and the cuts between characters. |
| A soft light on the focused character's face. |
Characters with no saved outfit wear Config.NakedPlayerClothes from config.lua.
Creating a Character#
The identity form asks for first name, last name, date of birth, nationality, sex and height. While the player fills it in, a preview character stands in the scene and switches between male and female live. Names use letters only, 2 to 25 characters, with spaces, apostrophes or hyphens between words.
Config.Identity = { minHeight = 140, maxHeight = 210, minAge = 18, maxAge = 90 }
Config.StarterItems = { { item = 'phone', amount = 1 } } -- given a few seconds after a new character spawnsAfter the form:
Your clothing script's menu opens in the scene, with no loading screen.
With an apartments script, a sky-view Your first home picker opens; the character walks to the door and the apartment is created.
Without one, the GTA sky camera takes the character to
Config.NewCharacterSpawn(the airport) and they wake up on the ground.
Set
Config.Scene.creator.enabled = falseinscene.luato open the clothing menu at the spawn instead of in the scene.
The Spawn Selector#
After picking a character the camera rises 650 metres over the map. Every place the character can go is marked with its name; choosing one flies the camera there, Enter confirms and Esc goes back. The list is built from:
Last location — where they logged out (
Config.LastLocation).My apartment — with an apartments script and
Config.Apartments.owned = true.Your spawn points from
Config.SpawnLocations.
Config.SpawnLocations = {
{ label = 'spawns.legion', address = 'Legion Square', coords = vec4(195.17, -933.77, 30.69, 144.5),
arrival = { moment = 'smoking' } },
{ label = 'spawns.mrpd', address = 'Mission Row', coords = vec4(426.24, -982.11, 29.71, 86.7),
jobs = { 'police' }, -- only police characters see it
arrival = { scenario = 'WORLD_HUMAN_COP_IDLES' } },
}Entries without jobs are open to everyone — keep at least one. Six spawns ship: airport, Legion Square, Pink Cage Motel, Paleto, Mission Row (police) and Pillbox (ambulance).
Rule | Effect |
|---|---|
| A character that logged out dead can only come back where they fell. |
Logged out inside a house or apartment | Every other spawn is locked and the character appears inside it again. |
Arrival animations#
When the camera lands, the character plays a GTA V switch-style animation and cannot move for Config.Arrivals.time (4.5 s). Each spawn picks one with arrival:
arrival = { moment = 'smoking' } -- one of Config.Moments
arrival = { random = true } -- a random one from Config.MomentPool
arrival = { scenario = 'WORLD_HUMAN_SMOKING', time = 4500 } -- any GTA scenario
Config.Arrivals = {
last = { random = true }, -- last location and apartments
switch = { random = true }, -- after a quick switch
new = { scene = { ... } }, -- new characters wake up on the ground (false to disable)
time = 4500,
}Built-in moments: getting_dressed, smoking, howling, wipe_hands, arms_crossed and watching.
Quick Switch#
In game, players press O (or type /switchchar) to open character cards in the bottom right. They pick one with A/D or the arrows and Enter, and the GTA sky camera takes them to their other character — no logout, no menu. Each player can change the key in Settings → Key Bindings → FiveM.
Config.QuickSwitch = {
enabled = true, -- needs a restart to change
command = 'switchchar',
key = 'O',
cardValue = 'cash', -- shown under each card: 'cash', 'bank', 'job' or 'none'
cooldown = 60, -- seconds between switches
fadeTime = 1.0,
spawnAt = 'last', -- 'last' = where that character was, 'spawn' = Config.NewCharacterSpawn, 'same' = right here
blockInVehicle = true,
}When switching is blocked#
So nobody escapes a fight or an arrest by switching, the panel refuses to open when the player:
is dead, down, or below
minHealthPcthealth;shot or aimed, fought or took damage in the last few seconds;
has a wanted level, or is in a vehicle;
switched less than
cooldownseconds ago.
Config.Combat = {
shotCooldown = 30,
damageCooldown = 45,
meleeCooldown = 20,
minHealthPct = 60,
blockWanted = true,
custom = false, -- function() return LocalPlayer.state.isCuffed end
}custom takes your own check — return true to block, for example while cuffed.
Logging Out and Deleting#
/logout saves the character, raises the sky camera and takes the player back to the menu. Rename the command with Config.LogoutCommand (false disables it), and use a fade to black instead of the sky camera with Config.Logout = { sky = false }.
Deleting removes the character from your framework, then every row in every table whose identifier, citizenid, owner or creator column matches it — vehicles, houses, phone data — in one transaction.
The Admin Panel#
/multicharsettings opens a settings panel in game. Changes apply live to every player and are saved on the server. Grant it with:
add_ace group.admin command.multicharsettings allowSection | Settings |
|---|---|
General | Server name, tagline, language, accent colour, deleting characters, server name on the menu. |
Slots | Characters per player, Tebex slots, store URL, monthly packages, Tebex check interval. |
Quick switch | On/off (restart needed), card value, cooldown, where the character appears, vehicles. |
Combat | Shot, damage and melee cooldowns, minimum health, wanted level. |
Spawns | Add a spawn where you stand, teleport to one, name, address, jobs and arrival animation. |
Menu | Text, description, link and visibility of each button. |
Scene | Time of day and weather. |
Panel values win over the config files. Use Reset section or Reset all in the panel to go back to what the files say.
Look and Feel#
Config.ServerName = 'QUASAR ROLEPLAY'
Config.ServerTagline = 'welcome.tagline' -- locale key or text
Config.AccentColor = '#00A3FF'
Config.ShowMenuTitle = false -- server name above the main menu
Config.Currency = { locale = 'en-US', currency = 'USD' } -- es-ES / EUR, pt-BR / BRL...
Config.ShotQuality = 'high' -- character portraits: 'high' or 'low'Character portraits are taken automatically in the scene and shown on the menu cards and the quick switch. With qs-appearance, illenium-appearance or rcore_clothing, missing portraits are also generated in the background.
Notifications and HUD#
Both use qs-interface when it is started, otherwise ox_lib notifications and the radar. Point them at your own scripts in config.lua:
Config.Notify = function(text, kind) -- kind: 'info', 'error' or 'success'
lib.notify({ title = Config.ServerName, description = text, type = kind == 'info' and 'inform' or kind })
end
Config.ToggleHud = function(visible)
DisplayRadar(visible)
-- exports['my-hud']:Toggle(visible)
endTimeouts and Debug#
Config.ModelTimeout = 15000 -- ms a character model may take to load
Config.CollisionTimeout = 10000 -- ms to wait for the ground at the spawn
Config.LoadTimeout = 30000 -- ms before a stuck quick switch gives control back
Config.Debug = false -- detailed console logKeep
Config.Debugoff in production.



