From cd20d2b791580747333d18ce26fb4f94b007d4dd Mon Sep 17 00:00:00 2001 From: TheHorizon-Fivem <99117463+TheHorizon-Fivem@users.noreply.github.com> Date: Mon, 20 Jun 2022 19:48:18 +0200 Subject: [PATCH] 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 --- server/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/functions.lua b/server/functions.lua index 59b3e16..cb2943c 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -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