Ensure you have the following resources started on your server:
oxmysql
es_extended
skinchanger
Appearance Note:skinchanger is the only required appearance dependency. esx_skin is completely optional. If you use illenium-appearance, fivem-appearance, or the built-in character creator, you do not need esx_skin.
Built-in Creator (Default): The resource includes an integrated character creator. Players configure genetics, face, hair, and clothing directly inside the UI. Appearance is automatically saved to the database.
External Menus: If you prefer using an external clothing shop (illenium-appearance, fivem-appearance, or esx_skin), set Config.CharacterCreator.enableDefaultCreator = false in shared/config.lua and add your trigger in Config.CharacterCreator.customCharacterCreator.
Config.Settings = { -- Language: 'en' or 'tr' language = 'en', -- UI Accent Color: 'violet', 'cyan', 'orange', 'gold', 'pink', 'emerald', 'crimson' theme = 'violet', -- Maximum slots a player can ever unlock maxslot = 6, -- Slots unlocked by default for new players availablSlots = 4, -- Allow players to delete characters from the menu enableDeleteButton = true, -- Enable slot purchasing / promo code unlock dialog in UI enableSlotPurchasing = true, -- Store link opened when clicking "Buy from Store" storeLink = 'https://pixelsoft.tebex.io', -- Phone number format for newly created characters phoneFormat = '555-%04d',}
Common installation issues and immediate solutions:
❌ Failed to verify protected resource / Keymaster Error
Error Message:Could not load resource px-multicharacter (failed to verify protected resource)
Cause: The FiveM server sv_licenseKey in your server.cfg does not belong to the Cfx.re / Keymaster account that purchased the asset on Tebex, or Keymaster asset cache has not synced yet.
Ensure your server license key was generated under this exact account, or transfer the asset grant.
Restart your FiveM server (Keymaster asset grant synchronization may take 5–10 minutes).
❌ SCRIPT ERROR: attempt to index a nil value (oxmysql / MySQL)
Error Message:@px-multicharacter/server/main.lua:... attempt to index a nil value (field 'query')
Cause:oxmysql is started after px-multicharacter in server.cfg, or the database connection is not established before the script executes queries.
Solution Steps:
Ensure ensure oxmysql is placed at the very top of your server.cfg (before framework and gameplay resources).
Verify your set mysql_connection_string credentials and connection parameters.
Confirm that the required player table (users or players) exists in your database schema.
⚠️ NUI Interface Does Not Open / Black Screen on Connect
Cause: Resource folder was renamed (e.g. px-multicharacter-main extracted from a zip/git branch). The NUI root URL cannot locate the web bundle.
Solution: Rename the folder to strictly px-multicharacter. Remove any -main, -master, or version suffixes.
⚠️ Player Falls Through Map After Selecting Character
Cause: Custom MLO/IPL interior collisions take longer to stream over slow network connections or heavy map assets.
Solution: Verify Config.Spawn.defaultSpawn.coords in shared/config.lua or ensure the player ped is frozen for ~1.5 seconds on spawn to allow world collisions to load.
⚠️ Appearance / Clothing Not Loading (Player Spawns Naked or Invisible)
Cause: Appearance system mismatch (illenium-appearance, fivem-appearance, or qb-clothing) or appearance script starts after px-multicharacter.
Solution: Ensure your appearance resource is configured in shared/config.lua and started before px-multicharacter in server.cfg.
No. Only skinchanger is required. If your server uses illenium-appearance, fivem-appearance, or the built-in creator, you do not need esx_skin.
How do I change the default number of slots?
In shared/config.lua, change Config.Settings.availablSlots to the desired number of default unlocked slots, and Config.Settings.maxslot to the maximum possible slots.
How do players return to the character menu?
Players can type /logout or /relog in chat. Their character data, position, and inventory are saved before returning to the selection screen.
Can I use an external spawn menu like qb-spawn?
Yes. Set Config.Spawn.enableDefaultSpawn = false and add your export or event trigger inside Config.Spawn.customSpawn.