Install — CC Multicharacter
About five minutes on a server that already runs. Every step is copy-paste.
About five minutes on a server that already runs. Every step is copy-paste.
1. Requirements
| Needed | Version | Why |
|---|---|---|
| cc_lib | 1.11.0 or newer (1.13.0 recommended) | The bridge to your framework, clothing, inventory, notify and weather, plus the security gate every event goes through |
| oxmysql | any current | Our own tables (slots, deletes, playtime, favourites, starter claims) |
| FiveM server artifact | 6683+ with OneSync on | Routing buckets and server-side ped positions |
Optional, detected at start (nothing to configure): a framework (Qbox, QBCore, ESX Legacy, ox_core — or none, see Standalone), a clothing resource, a housing resource. The full list is in COMPATIBILITY.md.
2. Remove the old character screens
cc_multicharacter is the loading screen, the character select and the spawn selector. Two of any of those fight over the same player, so it refuses to start next to one and says which in the console. Remove the ensure line of every one you run:
qb-multicharacter qbx_multicharacter esx_multicharacter ps-multicharacter
um-multicharacter okokMultichar 17mov_CharacterSystem
qb-spawn qbx_spawn cc_loadingAlso remove any other resource whose fxmanifest.lua has a loadscreen line (a loading screen). There can be only one.
ESX: set Config.Multichar = true in es_extended/config.lua. Qbox: set useExternalCharacters = true in qbx_core/config/client.lua (qbx_core then waits for us instead of opening its own screen).
3. Drop it in
Put the cc_multicharacter folder in your resources and add it after your framework, clothing, housing and cc_lib:
ensure oxmysql
ensure qbx_core # or qb-core / es_extended / ox_core (or nothing: standalone)
ensure illenium-appearance # your clothing resource
ensure cc_lib
ensure cc_multicharacterStart the server. The console prints framework qbox, housing none (or similar) and the six (seven standalone) cc_multichar_* tables are created on their own. sql/install.sql holds the same tables if your host makes you import SQL by hand.
4. Permissions (ACE)
add_ace group.admin cc_multicharacter.admin allow # /ccmc_staff, /ccmc_spot, ccmc_restoreExtra character slots by ACE (optional):
add_ace identifier.license:xxxxxxxx cc_multicharacter.slots.2 allow # +2 slots5. Optional convars
Copy what you need from install/convars.cfg:
setr cc_multicharacter_locale "en" # locales/<code>.json
setr cc_multicharacter_preset "" # merge presets/<name>.lua over config.lua
setr cc_multicharacter_relog_command "relog" # '' turns /relog off
set cc_multicharacter_framework "" # force: qbox | qb | esx | ox | standalone
set cc_multicharacter_housing "" # force one, or "none"
set cc_multicharacter_bot_token "..." # Discord bot token for role-based slots (set, NEVER setr)6. Make it yours
config.lua→Config.UI.brand(name, tagline, logo) andConfig.UI.theme(colours).- Put your pictures in
web/brand/,web/scenes/,web/spawns/,web/map/and songs you have the rights to inweb/music/, then name them inconfig.lua. The product ships no photos, map or music; until you add them the screens show clean plain panels. - Pick a scene (
Config.Scene = 'pier'or'rooftop') or build your own with/ccmc_spot. - Check the spawn points in
Config.Spawn.pointsagainst your map.
Every key is explained in CONFIG.md.
Standalone (no framework)
With no framework running, cc_multicharacter keeps the characters itself (cc_multichar_characters) and the whole flow still works. It warns once in the console so a framework that failed to start is never mistaken for standalone. Force it with set cc_multicharacter_framework "standalone". Your own resources read the active character with exports.cc_multicharacter:getCharacter(src) or the replicated state bag Player(src).state.cc_character. See EXPORTS.md.
Updating
Replace every file except config.lua, server/config.lua, presets/, locales/ (if you translated) and your pictures and music in web/. Read CHANGELOG.md for renamed keys first. Tables migrate themselves.
Something not working? TROUBLESHOOTING.md.