This commit is contained in:
ElPumpo
2018-11-10 11:11:07 +01:00
parent bac7be4f6b
commit 9093c9912b
+1 -1
View File
@@ -129,7 +129,7 @@ AddEventHandler('es:playerLoaded', function(source, _player)
-- Get job name, grade and last position
table.insert(tasks2, function(cb2)
MySQL.Async.fetchAll('SELECT loadout, position FROM `users` WHERE `identifier` = @identifier', {
MySQL.Async.fetchAll('SELECT job, job_grade, loadout, position FROM `users` WHERE `identifier` = @identifier', {
['@identifier'] = player.getIdentifier()
}, function(result)
userData.job['name'] = result[1].job