mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
update DatabaseConfig to have more flexibility in the future
This commit is contained in:
1 parent
96a3f7895a
commit
52f94fed7b
3 files changed
+12
-10
No files matched your search
@@ -11,7 +11,7 @@ AddEventHandler('phone:getCredentials', function()
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
local _identifier = xPlayer.getIdentifier()
|
||||
MySQL.Async.fetchAll('SELECT ' .. db.phoneNumber .. ' AS phone_number FROM ' .. db.userTable .. ' WHERE ' .. db.id .. '=@identifier',
|
||||
MySQL.Async.fetchAll('SELECT ' .. db.users.phoneNumber .. ' AS phone_number FROM ' .. db.users.table .. ' WHERE ' .. db.users.id .. '=@identifier',
|
||||
{
|
||||
['@identifier'] = _identifier
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user