Merge pull request #1188 from thelindat/patch-1

fix(server/main): Define default values for loadout and weight
This commit is contained in:
ESXCrackhead
2021-06-23 09:45:43 -05:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ end
local savePlayers = -1
Citizen.CreateThread(function()
savePlayers = MySQL.Sync.store("UPDATE users SET `accounts` = ?, `job` = ?, `job_grade` = ?, `group` = ?, `position`= ?, `inventory`, = ?, `loadout` = ? WHERE `identifier` = ?")
savePlayers = MySQL.Sync.store("UPDATE users SET `accounts` = ?, `job` = ?, `job_grade` = ?, `group` = ?, `position` = ?, `inventory` = ?, `loadout` = ? WHERE `identifier` = ?")
end)
ESX.SavePlayer = function(xPlayer, cb)
+2
View File
@@ -126,7 +126,9 @@ function loadESXPlayer(identifier, playerId, isNew)
accounts = {},
inventory = {},
job = {},
loadout = {},
playerName = GetPlayerName(playerId),
weight = 0
}
table.insert(tasks, function(cb)