fix(server/player): wrong type

This commit is contained in:
BerkieBb
2022-08-10 17:37:29 +02:00
committed by GitHub
parent b1e1c11788
commit c52e501588
+1 -1
View File
@@ -553,7 +553,7 @@ end
function QBCore.Functions.AddPlayerMethod(ids, methodName, handler)
local idType = type(ids)
if idType == "string" then
if idType == "number" then
if ids == -1 then
for _, v in pairs(QBCore.Players) do
v.Functions.AddMethod(methodName, handler)