Player Update

This commit is contained in:
GhzGarage
2021-06-28 18:24:44 -05:00
parent 1a2ff548ab
commit 1ed8c63cdb
+2 -2
View File
@@ -435,6 +435,7 @@ QBCore.Player.Save = function(source)
})
else
exports.ghmattimysql:execute('UPDATE players SET steam=@steam, license=@license, name=@name, money=@money, charinfo=@charinfo, job=@job, gang=@gang, position=@position, metadata=@metadata WHERE citizenid=@citizenid', {
['@citizenid'] = PlayerData.citizenid,
['@steam'] = PlayerData.steam,
['@license'] = PlayerData.license,
['@name'] = PlayerData.name,
@@ -443,8 +444,7 @@ QBCore.Player.Save = function(source)
['@job'] = json.encode(PlayerData.job),
['@gang'] = json.encode(PlayerData.gang),
['@position'] = json.encode(PlayerData.position),
['@metadata'] = json.encode(PlayerData.metadata),
['@citizenid'] = json.encode(PlayerData.citizenid)
['@metadata'] = json.encode(PlayerData.metadata)
})
end
QBCore.Player.SaveInventory(source)