mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 08:01:36 +00:00
Only select name
This commit is contained in:
+2
-2
@@ -70,12 +70,12 @@ end, false)
|
||||
|
||||
function GetCharacterName(source)
|
||||
-- fetch identity in sync
|
||||
local result = MySQL.Sync.fetchAll('SELECT * FROM users WHERE identifier = @identifier',
|
||||
local result = MySQL.Sync.fetchAll('SELECT firstname, lastname FROM users WHERE identifier = @identifier',
|
||||
{
|
||||
['@identifier'] = GetPlayerIdentifiers(source)[1]
|
||||
})
|
||||
|
||||
if result[1] ~= nil and result[1].firstname ~= nil and result[1].lastname ~= nil then
|
||||
if result[1] and result[1].firstname and result[1].lastname then
|
||||
if Config.OnlyFirstname then
|
||||
return result[1].firstname
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user