mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
refactor(esx_multicharacter/server): remove hacky jobs workaround
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user