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.
um-multicharacter > config | needs to be set important ones
Config.Identifier = 'license' -- license or steam or discord
Config.Prefix = 'char'
esx_multicharacter
- delete
esx_multicharacter
es_extended
-
es_extended > shared > config > main.lua
-
find
Config.Multichar = GetResourceState("esx_multicharacter") ~= "missing"
- and replace
Config.Multichar = true
- and make sure it's true
Config.Identity = true
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'