Update main.lua

This commit is contained in:
RoadToSix
2022-07-27 00:54:26 +02:00
committed by GitHub
parent 9bf28a46ae
commit 8744f2c101
+3 -3
View File
@@ -44,7 +44,7 @@ elseif ESX.GetConfig().Multichar == true then
else ESX.Players = {} end
local function SetupCharacters(source)
while not FETCH do Citizen.Wait(100) end
while not FETCH do Wait(100) end
local identifier = GetIdentifier(source)
ESX.Players[identifier] = true
@@ -118,7 +118,7 @@ elseif ESX.GetConfig().Multichar == true then
MySQL.transaction(queries, function(result)
if result then
print(('[^2INFO^7] Player [%s] %s has deleted a character (%s)'):format(GetPlayerName(source), source, identifier))
Citizen.Wait(50)
Wait(50)
SetupCharacters(source)
else
error('\n^1Transaction failed while trying to delete '..identifier..'^0')
@@ -171,7 +171,7 @@ elseif ESX.GetConfig().Multichar == true then
repeat
ESX.Jobs = GetJobs()
Citizen.Wait(50)
Wait(50)
until next(ESX.Jobs)
FETCH = 'SELECT identifier, accounts, job, job_grade, firstname, lastname, dateofbirth, sex, skin, disabled FROM users WHERE identifier LIKE ? LIMIT ?'