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:
TheHorizon-Fivem
2022-06-20 19:48:18 +02:00
committed by GitHub
parent 6caf27c45a
commit cd20d2b791
+1 -1
View File
@@ -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