housing und dj
This commit is contained in:
parent
112c7b1761
commit
10a5d168d4
731 changed files with 506993 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
if Config.Phone ~= 'default' then
|
||||
return
|
||||
end
|
||||
|
||||
function GetPlayerPhone(source)
|
||||
local player = GetPlayerFromId(source)
|
||||
|
||||
if Config.Framework == 'qb' then
|
||||
return player.PlayerData.charinfo.phone
|
||||
end
|
||||
|
||||
local identifier = player.identifier
|
||||
local result = MySQL.Sync.fetchAll('SELECT phone_number FROM users WHERE identifier = ?', {
|
||||
identifier
|
||||
})
|
||||
|
||||
if not result[1] then
|
||||
print('Your phone is nil')
|
||||
return ''
|
||||
end
|
||||
return result[1].phone_number
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue