mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 10:48:52 +00:00
Update main.lua
This commit is contained in:
@@ -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 ?'
|
||||
|
||||
Reference in New Issue
Block a user