mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Don't select everything
This commit is contained in:
+1
-1
@@ -341,7 +341,7 @@ end)
|
|||||||
ESX.RegisterServerCallback('esx_property:getLastProperty', function(source, cb)
|
ESX.RegisterServerCallback('esx_property:getLastProperty', function(source, cb)
|
||||||
local xPlayer = ESX.GetPlayerFromId(source)
|
local xPlayer = ESX.GetPlayerFromId(source)
|
||||||
|
|
||||||
MySQL.Async.fetchAll('SELECT * FROM users WHERE identifier = @identifier', {
|
MySQL.Async.fetchAll('SELECT last_property FROM users WHERE identifier = @identifier', {
|
||||||
['@identifier'] = xPlayer.identifier
|
['@identifier'] = xPlayer.identifier
|
||||||
}, function(users)
|
}, function(users)
|
||||||
cb(users[1].last_property)
|
cb(users[1].last_property)
|
||||||
|
|||||||
Reference in New Issue
Block a user