um-multicharacter
Framework
- Make sure your
esx_core
version are not old
Installation
Firstly
stop basic-gamemode
in server.cfg (do not add this again, if you have this, replace ensure with stop)- Replace
web > build > logo.png
with your server logo (Appears for someone creating a character for the first time) - Then, go to the
config.lua
file and configure it according to your preferences.
What needs to be set in the config? (Important ones)
Config.Identifier = 'license' -- license or steam or discord
Config.Prefix = 'char'
es_extended
es_extended > config.lua
Config.Multichar = true
Config.Identity = true
esx_multicharacter
- delete
esx_multicharacter
esx_loadingscreen (If you are using this)
Config.Fade = false
esx_identity
- um-multicharacter
only works with esx_identity
esx_identity (opens in a new tab) - check your
esx_identity version
fxmanifest.lua > version - open
esx_identity > client > main.lua
- Find this
RegisterNUICallback("register", function(data, cb)
in youresx_identity
and replace this code below
if version 1.11.1 or higher
RegisterNUICallback('register', function(data,cb)
ESX.TriggerServerCallback('esx_identity:registerIdentity', function(callback)
if not callback then
return
end
if not ESX.GetConfig().Multichar then
return print('Need es-extended > config.lua > Multichar true')
end
end, data)
cb(1)
end)
if version 1.10.10 or lower
RegisterNUICallback('register', function(data,cb)
ESX.TriggerServerCallback('esx_identity:registerIdentity', function(callback)
if not callback then
return
end
if not ESX.GetConfig().Multichar then
return print('Need es-extended > config.lua > Multichar true')
end
end, data)
cb(1)
end)
end
SQL [esx_core]
- If you think your SQL is missing, add this to your SQL (opens in a new tab)
Server.cfg
💡
You need to do the sorting
correctly (um-multicharacter must always be at the end)
ensure oxmysql
ensure ox_lib
------------------
ensure es_extended
ensure [core]
ensure [standalone]
------------------
ensure um-multicharacter
Optional (More stable)
- If you have a loading screen check fxmanifest.lua
- add it if it doesn't have it
loadscreen_manual_shutdown 'yes'