Merge pull request #732 from TheHorizon-Fivem/patch-2

phone issue
This commit is contained in:
Kakarot
2022-06-20 22:05:14 -05:00
committed by GitHub
+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