diff --git a/[core]/es_extended/server/functions.lua b/[core]/es_extended/server/functions.lua index b68dc327..3308ddf8 100644 --- a/[core]/es_extended/server/functions.lua +++ b/[core]/es_extended/server/functions.lua @@ -158,7 +158,7 @@ function Core.SavePlayer(xPlayer, cb) xPlayer.job.grade, xPlayer.group, json.encode(xPlayer.getCoords()), - json.encode(xPlayer.getInventory(true)), + json.encode(xPlayer.getInventory(true)), json.encode(xPlayer.getLoadout(true)), json.encode(xPlayer.getMeta()), xPlayer.identifier @@ -184,7 +184,7 @@ function Core.SavePlayers(cb) if not next(xPlayers) then return end - + local startTime = os.time() local parameters = {} @@ -204,7 +204,7 @@ function Core.SavePlayers(cb) MySQL.prepare( "UPDATE `users` SET `accounts` = ?, `job` = ?, `job_grade` = ?, `group` = ?, `position` = ?, `inventory` = ?, `loadout` = ?, `metadata` = ? WHERE `identifier` = ?", - parameters, + parameters, function(results) if not results then return @@ -213,7 +213,7 @@ function Core.SavePlayers(cb) if type(cb) == 'function' then return cb() end - + print(('[^2INFO^7] Saved ^5%s^7 %s over ^5%s^7 ms'):format(#parameters, #parameters > 1 and 'players' or 'player', ESX.Math.Round((os.time() - startTime) / 1000000, 2))) end ) @@ -244,7 +244,7 @@ function ESX.GetPlayerFromIdentifier(identifier) end function ESX.GetIdentifier(playerId) - local fxDk = GetConvarInt('sv_fxdkMode', 0) + local fxDk = GetConvarInt('sv_fxdkMode', 0) if fxDk == 1 then return "ESX-DEBUG-LICENCE" end @@ -262,7 +262,7 @@ end function ESX.GetVehicleType(model, player, cb) model = type(model) == 'string' and joaat(model) or model - + if Core.vehicleTypesByModel[model] then return cb(Core.vehicleTypesByModel[model]) end @@ -306,7 +306,7 @@ function ESX.DiscordLogFields(name, title, color, fields) ['text'] = "| ESX Logs | " .. os.date(), ['icon_url'] = "https://cdn.discordapp.com/attachments/944789399852417096/1020099828266586193/blanc-800x800.png" }, - ['fields'] = fields, + ['fields'] = fields, ['description'] = "", ['author'] = { ['name'] = "ESX Framework", @@ -386,7 +386,7 @@ function ESX.SetPlayerFunctionOverride(index) return print('[^3WARNING^7] No valid index provided.') end - Config.PlayerFunctionOverride = index + Core.PlayerFunctionOverride = index end function ESX.GetItemLabel(item)