mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Fixed group not storing on db when saving player
This commit is contained in:
@@ -161,10 +161,11 @@ ESX.SavePlayer = function(xPlayer, cb)
|
|||||||
local asyncTasks = {}
|
local asyncTasks = {}
|
||||||
|
|
||||||
table.insert(asyncTasks, function(cb)
|
table.insert(asyncTasks, function(cb)
|
||||||
MySQL.Async.execute('UPDATE users SET accounts = @accounts, job = @job, job_grade = @job_grade, loadout = @loadout, position = @position, inventory = @inventory WHERE identifier = @identifier', {
|
MySQL.Async.execute('UPDATE users SET accounts = @accounts, job = @job, job_grade = @job_grade, `group` = @group, loadout = @loadout, position = @position, inventory = @inventory WHERE identifier = @identifier', {
|
||||||
['@accounts'] = json.encode(xPlayer.getAccounts(true)),
|
['@accounts'] = json.encode(xPlayer.getAccounts(true)),
|
||||||
['@job'] = xPlayer.job.name,
|
['@job'] = xPlayer.job.name,
|
||||||
['@job_grade'] = xPlayer.job.grade,
|
['@job_grade'] = xPlayer.job.grade,
|
||||||
|
['@group'] = xPlayer.getGroup(),
|
||||||
['@loadout'] = json.encode(xPlayer.getLoadout(true)),
|
['@loadout'] = json.encode(xPlayer.getLoadout(true)),
|
||||||
['@position'] = json.encode(xPlayer.getCoords()),
|
['@position'] = json.encode(xPlayer.getCoords()),
|
||||||
['@identifier'] = xPlayer.identifier,
|
['@identifier'] = xPlayer.identifier,
|
||||||
|
|||||||
Reference in New Issue
Block a user