diff --git a/server/functions.lua b/server/functions.lua index 3ff7af7f..e03d0dc2 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -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) diff --git a/server/main.lua b/server/main.lua index 9ff09122..3ad62482 100644 --- a/server/main.lua +++ b/server/main.lua @@ -126,7 +126,9 @@ function loadESXPlayer(identifier, playerId, isNew) accounts = {}, inventory = {}, job = {}, + loadout = {}, playerName = GetPlayerName(playerId), + weight = 0 } table.insert(tasks, function(cb)