✏️ fix typo change Config to Core

This commit is contained in:
Horváth Gellért
2023-04-30 17:03:20 +02:00
parent e102fc7cea
commit 5ed7c768b6
+8 -8
View File
@@ -150,7 +150,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
@@ -176,7 +176,7 @@ function Core.SavePlayers(cb)
if not next(xPlayers) then
return
end
local startTime <const> = os.time()
local parameters = {}
@@ -196,7 +196,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
@@ -205,7 +205,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
)
@@ -236,7 +236,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
@@ -254,7 +254,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
@@ -298,7 +298,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",
@@ -378,7 +378,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)