mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
phone issue
a fix for the phone issue https://github.com/qbcore-framework/qb-phone/issues/306 fixed by https://github.com/peppinoita but he didnt make a pull request for it
This commit is contained in:
@@ -58,7 +58,7 @@ end
|
||||
|
||||
function QBCore.Functions.GetPlayerByPhone(number)
|
||||
for src, _ in pairs(QBCore.Players) do
|
||||
if QBCore.Players[src].PlayerData.charinfo.phone == number then
|
||||
if QBCore.Players[src].PlayerData.charinfo.phone == tonumber(number) then
|
||||
return QBCore.Players[src]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user