← All docsServer experience

Swarm Multichar

A cinematic character select and creator for Qbox, with random interior scenes, job themes, a wall logo and a starter-item pick. Comes with swarm_appearance, which adds a branded transition to the appearance editor.

QboxResource: swarm_multichar

New to Swarm scripts? Read Getting started first. It covers Swarm Bridge, install order and the licence.

Requirements

Frameworks: Qbox.

RequirementWhat it's forIncluded
swarm_bridgeTalks to your framework, inventory, target and so on. Included with every Swarm script.Yes
swarm_appearanceOpens the appearance editor during character creation. Included.Yes
qbx_coreCharacters are loaded, created and deleted through Qbox.No
ox_libShared library (callbacks, progress bars, text UI).No
oxmysqlNeeded by qbx_core.No
illenium-appearance (or fivem-appearance)The appearance editor.No

Install

  1. Copy the folders swarm_multichar, swarm_appearance, swarm_bridge into your server's resources folder. Already have swarm_bridge from another Swarm script? Keep just one copy, the newest.
  2. Add them to server.cfg, dependencies first:
    ensure ox_lib
    ensure oxmysql
    ensure qbx_core
    ensure illenium-appearance
    ensure swarm_bridge
    ensure swarm_loadingscreen
    ensure swarm_appearance
    ensure swarm_multichar

    Only include swarm_loadingscreen if you use it. Start swarm_appearance before swarm_multichar.

  3. Database: No tables of its own. Characters are stored by qbx_core.
  4. Items:

    No item files. The starter-item choices must already exist in your inventory: phone, bandage, burger, fries, donut, water_bottle, cigarette, ziptie. ox_inventory's default water item is water, so change the choice or add the item.

  5. In qbx_core/config/client.lua, set characters.useExternalCharacters = true. Otherwise both character screens run.
  6. Licensed edition only: put your ServerSecret in swarm_bridge/licence/private_config.lua. One secret unlocks every Swarm script you own. How to get it. The Source Code edition has no licence check, so skip this.
  7. Start the server and check the console for errors.

Configuration

Open config.lua and check these before going live. Anything marked as a placeholder should be moved to a spot that suits your map.

SettingWhat it does
SwarmMulticharConfig.StarterItems.choicesStarter choices. Item names and amounts must exist in your inventory. The cash choice is 2500.
SwarmMulticharConfig.StarterItems.singletrue = pick one, false = pick any.
SwarmMulticharConfig.WallLogo.enabled / image / imageAspectThe logo shown on the scene wall. Replace the image with your own server's logo, or turn it off.
html/js/theme.js THEMES[*].videoOptional background video per theme. Blank by default.
SwarmMulticharConfig.Locale'auto' follows Swarm Bridge, or force a language code.
SwarmConfig.Appearance (in swarm_bridge)'illenium_appearance' or 'fivem_appearance'.
SwarmConfig.Discord.webhook (in swarm_bridge)Optional log of character creation and deletion.
SwarmConfig.Scripts.MultiChar (in swarm_bridge)Off switch. If you set it to false, also set useExternalCharacters = false in qbx_core.
SwarmAppearanceConfig (in swarm_appearance)DefaultEditorConfig, Text and TransitionMs: editor sections and transition text.

Commands & permissions

This script has no chat commands.

No ACE permissions are needed.

Keys

  • Up / Down: select a character
  • Enter: play the selected character
  • Esc: close creator overlays

Good to know

  • Each character can claim one starter item, with a 10-minute cooldown per licence.
  • If qbx_spawn is running, its spawn picker opens after a character is chosen.

Need help?

Ask in the Swarm Scripts Discord and we'll help you get set up.