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.pngfile with your own server logo (This logo will be visible when a player creates a character for the first time) -
Then open the
config.luafile 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_multicharacterfile (delete your different multicharacter script if you have one)
4. es_extended
- Find the
es_extended > shared > config > main.luafile
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 > sqlfolder 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.luafile - If you don't have one, add this:
loadscreen_manual_shutdown 'yes'