ESX Framework Setup

This guide will help you install SW Multicharacter on the ESX Legacy framework.

Note:

This guide is based on ESX Legacy. Some minor differences may occur in other versions.

Setup Steps

1. Firstly

  • Change the web > build > logo.png file with your own server logo (This logo will be visible when a player creates a character for the first time)

  • Then open the config.lua file and configure it as you wish.

2. sw-multicharacter > config.lua needs to be set important ones

Config.Framework = 'esx'
Config.Prefix = 'char' -- Don't change this

3. esx_multicharacter

  • Delete esx_multicharacter file (delete your different multicharacter script if you have one)

4. es_extended

  • Find the es_extended > shared > config > main.lua file
Config.Multichar = true

5. esx_loadingscreen (If you are using this)

Config.Fade = false

6. SQL [sw_multichar]

  • Add the database in the sw_multichar > sql folder to your server's database

Server.cfg

It is very important to load the source files in the correct order. The order should be as follows:

Note:

You must make the correct order (sw-multicharacter must always be at the end)

ensure oxmysql
ensure ox_lib
-------------------
ensure es_extended
ensure [core]
ensure [standalone]
-------------------
ensure sw-multichar

Optional

  • If you have a loading screen, check the fxmanifest.lua file
  • If you don't have one, add this:
loadscreen_manual_shutdown 'yes'