Everything is set in shared/config.lua. Locations, loading screen content and nationalities live in the data folder. Restart the resource after any change.
General
| Option | Type | Default | What it does |
|---|---|---|---|
debug | boolean | false | Prints debug messages in the console |
ui.accent | string | configurable | Accent colour of the interface and the loading screen, as a hex colour |
hud | function | empty | Called with false when the selection opens and with true when it closes. Use it to hide and show your HUD. The minimap is hidden without it |
hud = function(visible)
exports.my_hud:setVisible(visible)
end,Characters
| Option | Type | Default | What it does |
|---|---|---|---|
characters.slots | number | 3 | Characters any player can have |
characters.maxSlots | number | 10 | Absolute cap. No role or user ID goes above it |
characters.allowDelete | boolean | true | true lets players delete their own characters |
characters.card.money | boolean | true | Shows cash and bank on the character card |
characters.card.playtime | boolean | true | Shows hours played. With false nothing is counted and its table is not created |
characters.card.location | boolean | true | Shows the street and area of the last logout |
characters.card.gang | boolean | true | Shows the character's gang |
characters.card.lastSeen | boolean | true | Shows how long ago the character was last online |
characters.portraits.enabled | boolean | true | Face portrait of the character in each slot. With false their initials are shown |
characters.portraits.transparent | boolean | true | Portrait with a transparent background |
characters.portraits.max | number | 8 | Maximum portraits generated per selection session. Slots beyond that show initials |
Hours played
Hours played are stored per citizenid in the cuxial_multichar_playtime table, created automatically on start. The counter starts when the character enters the game and adds the time on logout, on disconnect and every 10 minutes. Characters that already existed start at zero.
Discord slots
Gives more characters to specific Discord roles or users.
| Option | Type | Default | What it does |
|---|---|---|---|
discordSlots.enabled | boolean | false | true enables extra slots by role and by user ID |
discordSlots.roles | list | empty | { id = 'ROLE_ID', slots = N } entries. Needs the bot convars |
discordSlots.users | table | empty | ['DISCORD_USER_ID'] = N entries. Works without the bot |
discordSlots.cacheMinutes | number | 10 | Minutes the roles of a player are remembered before asking Discord again |
discordSlots.timeoutMs | number | 4000 | Milliseconds to wait for Discord. With no answer, the player keeps the base slots |
How the final number is calculated:
slotsin a role or a user is the total number of characters, not an addition.- If a player matches several entries, the highest number wins.
- The result is never lower than
characters.slotsand never higher thancharacters.maxSlots. - The player needs Discord linked to FiveM. Without it, they get the base slots.
The bot token and the server ID are convars, not config options. See Installation.
Registration
| Option | Type | Default | What it does |
|---|---|---|---|
register.name.min / max | number | 2 / 32 | Length allowed for first name and last name |
register.dob.format | string | "DD-MM-YYYY" | Date format: DD-MM-YYYY, YYYY-MM-DD or MM-DD-YYYY |
register.dob.minYear | number | 1950 | Oldest year of birth accepted |
register.minAge | number | 18 | Minimum age of an adult character |
register.height.enabled | boolean | true | Shows the height field |
register.height.min / max | number | 150 / 200 | Height range in cm |
register.backstory.enabled | boolean | true | Shows the backstory field |
register.backstory.min / max | number | 10 / 300 | Length allowed for the backstory |
The nationality list is in data/nationalities.lua.
Minor characters
A minor is created as a request. The player picks the parents and writes a motivation, and staff approve or reject it. Until it is approved, the character cannot be played.
| Option | Type | Default | What it does |
|---|---|---|---|
family.enabled | boolean | true | Enables minor characters |
family.minAge / maxAge | number | 6 / 17 | Age range of a minor |
family.motivation.min / max | number | 30 / 600 | Length allowed for the motivation |
family.height.min | number | 100 | Minimum height of a minor in cm |
family.height.max | table | male = 168, female = 158 | Maximum height by gender |
family.adultHeight | table | male = 182, female = 170 | Reference adult height. The character is scaled as its height divided by this value |
family.growthCommand | string | 'estatura' | Command the minor uses to change height. false removes it |
family.scaleRadius | number | 60.0 | Distance in metres within which other players are shown scaled |
family.rejectCooldownHours | number | 24 | Hours to wait after a rejection before sending a new request. 0 disables it |
family.allowOwnParent | boolean | false | true lets a player choose their own characters as parents |
family.maxPending | number | 1 | Pending requests allowed per player |
Requests are reviewed through the exports.
Spawn
| Option | Type | Default | What it does |
|---|---|---|---|
spawn.newCharacter | vec4 | — | Where a new character is placed while the appearance creator opens |
spawn.birth | vec4 | — | Where a new character appears after the creator. false skips this move |
spawn.registerPreview | vec4 | — | Where the character stands during creation |
spawn.registerReference | vec4 | — | Where the adult reference stands when setting a minor's height |
spawn.fallback | vec4 | — | Used when a character has no saved position or no location is available |
spawn.apartments | string / boolean | "auto" | "auto" uses starting apartments if qbx_properties is running and the framework has them enabled. true / false forces it. With apartments, the appearance creator and the move to spawn.birth are skipped |
Existing characters always spawn at their last saved position.
Entering the game
Transition from the selection into the game.
| Option | Type | Default | What it does |
|---|---|---|---|
play.fadeOut | number | 1800 | Fade to black after pressing play, in milliseconds |
play.hold | number | 900 | Minimum time on black, in milliseconds |
play.loadMs | number | 6000 | Maximum wait for the area around the spawn point to load, in milliseconds |
play.fadeIn | number | 2000 | Fade in, in milliseconds |
play.intro | boolean | true | Arrival shot that moves down to the player camera. With false the player enters directly |
play.introMs | number | 3500 | Duration of the arrival shot, in milliseconds |
play.handoffMs | number | 1500 | Transition from the arrival shot to the gameplay camera, in milliseconds |
Scene
| Option | Type | Default | What it does |
|---|---|---|---|
scene.randomLocation | boolean | true | true picks a random location each time. false always uses the first one in the list |
scene.emotes | list | texting, idle3, smoke2 | Emote commands played at random when the location has no emote of its own. Needs cuxial_emotes |
scene.fallbackScenario | string | "WORLD_HUMAN_STAND_MOBILE" | Scenario used when cuxial_emotes is not running |
scene.posture | string | "side" | "side" keeps the heading of the location. "front" turns the character towards the camera |
scene.depthOfField | boolean | true | Background blur. The player can turn it off with FPS mode |
scene.cameraDistance | number | 2 | Default camera distance: 1 near, 2 far |
scene.byJob | boolean | true | Uses locations with jobs, gangs or groups for characters of that job or gang. With false everyone gets the general locations |
scene.pace | number | 1.8 | Speed of camera moves. 1 is the base; higher is slower |
scene.switchFadeOut / switchFadeIn | number | 900 / 1600 | Fades when switching character, in milliseconds |
scene.switchShot | number | 1.0 | Share of the medium shot played when switching character, from 0.2 to 1 |
scene.light.enabled | boolean | true | Each location applies its own time, weather and filter. With false the world block is used |
scene.light.time | list | { 19, 0 } | Time { hour, minute } for locations that do not set time |
scene.light.weather | string | 'EXTRASUNNY' | Weather for locations that do not set weather |
scene.light.timecycle | table | name = 'cinema', strength = 0.25 | Colour filter (timecycle) and its strength from 0 to 1, for locations that do not set their own |
scene.sound.enabled | boolean | true | Transition sound when switching character |
scene.sound.set / out / in | string | 'PLAYER_SWITCH_CUSTOM_SOUNDSET', 'Short_Transition_Out', 'Short_Transition_In' | GTA soundset and the out and in sounds |
If the player picks a weather or time in their settings, their choice wins over the location.
Locations
data/locations.lua holds the places where characters are shown.
{ label = 'Rockford Hills', coords = vec4(-852.73, -226.99, 61.02, 354.04) },
{
label = 'Police station',
coords = vec4(444.37, -984.33, 30.69, 71.35),
jobs = { 'police' },
emote = { scenario = 'WORLD_HUMAN_COP_IDLES' },
time = { 10, 0 },
weather = 'CLEAR',
},
{
label = 'Police yard',
coords = vec4(448.16, -1017.41, 28.56, 90.65),
jobs = { 'police' },
camera = 'vehicle',
ride = { model = 'police3', siren = true },
},| Field | What it does |
|---|---|
label | Name of the location |
coords | Position and heading of the character |
jobs | Job names. The location is only used for characters with one of those jobs, and those characters only get locations of their job |
gangs | Same as jobs, with gang names. The job is checked before the gang |
groups | Names that count as both job and gang |
emote | { command = '...' } for an emote or { scenario = '...' } for a GTA scenario |
camera | front (default), back, close, free or vehicle |
ride | Scene vehicle, with camera = 'vehicle': { model, siren, props }. siren = true turns on the lights without sound. props accepts the properties of lib.setVehicleProperties |
requires | The location is only used when these hold: interior (a vec3 inside a loaded interior), resource (a running resource) and timeout (maximum wait for the interior in milliseconds, 3000 if omitted) |
time, weather, timecycle | Time { hour, minute }, weather and filter { name, strength } for this location. timecycle = false removes it. They need scene.light.enabled |
cameraCoords, fov, focusOffset, blur | Camera position and lens, only with camera = 'free'. cameraCoords is required in that mode |
scene | 'bar' plays the leaning animation with props defined in data/scenes.lua |
data/vehicle_locations.lua holds the spots used when the character poses with an owned vehicle.
data/scenes.lua holds the scene animations:
| Key | What it does |
|---|---|
bar | dict, anim, heading (character heading) and props ({ anim, model }) of the bar scene |
couple | List of couple animations: { dict, m, f }, one per gender |
friends | List of best friend animations: { dict, left, right }, one per side |
vehicle.male / female | Leaning on the car animation, by gender |
vehicle.standing | Standing next to a motorcycle animation |
vehicle.gap / bikeGap / along | Side gap from the car and from the motorcycle, and offset along the vehicle, in metres |
ID card, vehicles and partner
| Option | Type | Default | What it does |
|---|---|---|---|
idCard.enabled | boolean | true | Shows the real ID card while creating a character |
idCard.resource | string | "cuxial_license" | Resource that provides the card |
idCard.item | string | "id_card" | Item whose card is used |
idCard.cardId | string | nil | Specific card ID. nil picks it from the item |
vehicles.enabled | boolean | true | Lets players pick an owned vehicle for the scene |
vehicles.resource | string | "cuxial_garages" | Resource that must be running for this feature |
vehicles.spotCommand | string / boolean | false | Command name that copies your current vec4 to the clipboard, to fill data/vehicle_locations.lua |
partner.enabled | boolean | true | Enables couple and best friend scenes |
partner.maxDistance | number | 10.0 | Maximum distance in metres to invite someone |
partner.inviteSeconds | number | 60 | Seconds an invitation stays open |
partner.invitesPerMinute | number | 3 | Invitations a player can send per minute |
partner.commands.invite | string | "partnerinvite" | Name of the invite command |
partner.commands.force | table | forcepartner, group.admin | name and restricted (permission) of the staff command |
World
Weather and time shown in the selection. Each player can change them in their settings.
| Option | Type | Default | What it does |
|---|---|---|---|
world.enabled | boolean | true | false leaves the server weather and time untouched |
world.weather | string | "XMAS" | GTA weather type |
world.hour / minute | number | 23 / 30 | Time of day |
Loading screen and music
| Option | Type | Default | What it does |
|---|---|---|---|
loading.enabled | boolean | true | false closes the loading screen right away |
loading.autoEnter | boolean | false | true enters the selection without the start button |
loading.handoffMs | number | 2400 | Duration of the transition to the selection, in milliseconds |
loading.timeoutMs | number | 60000 | Safety limit in milliseconds. The loading screen closes if the transition never arrives |
loading.startKey | string | "Enter" | "Start" key. Picked in the admin panel from the valid keys |
loading.debug | boolean | false | Debug output of the loading screen |
music.enabled | boolean | true | Music in the loading screen and the selection |
music.file | string | 'sounds/music/…' | Path inside web/build of the track used when data/loading.lua has no track list. By default it points to the included track |
music.scale | number | 0.35 | Volume multiplier applied over the player's volume |
music.shuffle | boolean | true | Starts from a random track. With false, from the first one |
music.analyse | boolean | true | Makes the interface react to the beat |
Content is edited in data/loading.lua:
| Field | What it does |
|---|---|
background.video | Video file inside web/build, or a URL. Empty by default: no video, a dark background with particles |
background.dim, blur | Darkening (0 to 1) and blur of the video |
background.loop, startAt | Loop the video and second where it starts |
background.rate | Video playback speed. 0.5 by default (half speed) |
background.sound | 'auto' detects whether the video has sound. true / false forces it |
background.title, artist | Shown in the player when the video carries the sound |
tipSeconds | Seconds each tip stays on screen |
tracks | Playlist: { id, url, title, artist }. By default it holds the included track |
tips | Tips: { id, category, title, text } |
keys | Key guide: { id, keys, label, category, description } |
The package includes one music track in web/build/sounds/music, already listed in tracks. It includes no video. To change the music or add a video, copy your files inside web/build (for example web/build/sounds/music and web/build/video) and list them in data/loading.lua. Use .webm video and .ogg audio.
Starter items, commands and logs
| Option | Type | Default | What it does |
|---|---|---|---|
starterItems | list | black_phone ×1 | { item, amount }. identity = true fills the item with the character's name, date of birth and nationality. metadata sets custom metadata |
commands.logout | table | logout, group.admin | name and restricted (permission) of the command. restricted = false opens it to everyone |
commands.logoutPlayer | table | logoutplayer, group.admin | name and restricted (permission) of the command |
commands.admin | table | mcadmin, group.admin | name and restricted (permission) of the admin panel command |
logs.enabled | boolean | true | Sends logs to Discord when the webhook convar is set |
logs.convar | string | "cuxial_multichar_webhook" | Name of the convar that holds the webhook |
logs.username | string | "Multicharacter" | Name shown by the webhook |
logs.webhook | string or false | false | Webhook saved from the admin panel. It wins over the convar. false uses the convar |
Admin panel
| Option | Type | Default | What it does |
|---|---|---|---|
admin.permission | string | "admin" | Permission checked on every admin panel action |
admin.auditDays | number | 90 | Days the panel audit log is kept |
The values in this file are the factory ones. What you save in the admin panel is stored in the database and wins over the file until you reset it.
Common changes
discordSlots = {
enabled = true,
roles = {
{ id = '123456789012345678', slots = 5 },
},
},