refactor(esx_multicharacter/server): remove hacky jobs workaround

This commit is contained in:
Linden
2023-07-06 00:31:56 +10:00
parent 303ddcee55
commit 6234d5da9c
+3 -12
View File
@@ -184,20 +184,11 @@ MySQL.ready(function()
end
end
ESX.Jobs = {}
local function GetJobs()
if ESX.GetJobs then
return ESX.GetJobs()
end
return exports.es_extended:getSharedObject().Jobs
while not next(ESX.Jobs) do
Wait(500)
ESX.Jobs = ESX.GetJobs()
end
repeat
ESX.Jobs = GetJobs()
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 ?'
databaseConnected = true
end