Only select what we need

This commit is contained in:
ElPumpo
2018-11-09 23:38:00 +01:00
parent 23ef814d82
commit aedd4132cd
+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 * FROM `users` WHERE `identifier` = @identifier', {
MySQL.Async.fetchAll('SELECT loadout, position FROM `users` WHERE `identifier` = @identifier', {
['@identifier'] = player.getIdentifier()
}, function(result)
userData.job['name'] = result[1].job