fix(server): await player slots

This commit is contained in:
Dolu
2022-03-12 03:44:30 +01:00
committed by GitHub
parent 9c63431c2c
commit 09ce85123d
+1 -1
View File
@@ -48,7 +48,7 @@ elseif ESX.GetConfig().Multichar == true then
local identifier = GetIdentifier(source)
ESX.Players[identifier] = true
local slots = MySQL.scalar('SELECT slots FROM multicharacter_slots WHERE identifier = ?', { identifier }) or SLOTS
local slots = MySQL.scalar.await('SELECT slots FROM multicharacter_slots WHERE identifier = ?', { identifier }) or SLOTS
identifier = PREFIX..'%:'..identifier
local result = MySQL.query.await(FETCH, {identifier, slots})