diff --git a/config.lua b/config.lua index b5af0abc..e7290c3f 100644 --- a/config.lua +++ b/config.lua @@ -29,7 +29,7 @@ else -- Do not use unless you are prepared to adjust your resources to correctly reset data -- Information: https://github.com/thelindat/esx_multicharacter#relogging - Config.Relog = false + Config.Relog = true -------------------- -- Default appearance for new characters diff --git a/server/main.lua b/server/main.lua index d966d528..f411692a 100644 --- a/server/main.lua +++ b/server/main.lua @@ -49,7 +49,7 @@ elseif ESX.GetConfig().Multichar == true then while not FETCH do Citizen.Wait(100) end local identifier = GetIdentifier(source) ESX.Players[identifier] = true - + local slots = MySQL.Sync.fetchScalar("SELECT slots FROM multicharacter_slots WHERE identifier = ?", { identifier }) or SLOTS @@ -94,12 +94,12 @@ elseif ESX.GetConfig().Multichar == true then Citizen.Wait(100) if identifier then if ESX.Players[identifier] then - deferrals.done(('A player is already connected to the server with this identifier.\nYour identifier: %s:%s'):format(PRIMARY_IDENTIFIER, identifier) + deferrals.done(('A player is already connected to the server with this identifier.\nYour identifier: %s:%s'):format(PRIMARY_IDENTIFIER, identifier)) else deferrals.done() end else - deferrals.done(('Unable to retrieve player identifier.\nIdentifier type: %s'):format(PRIMARY_IDENTIFIER) + deferrals.done(('Unable to retrieve player identifier.\nIdentifier type: %s'):format(PRIMARY_IDENTIFIER)) end end)