From 9b6e4794190eeba788e428988c4884e2576ef569 Mon Sep 17 00:00:00 2001 From: Benji <121201664+ruptz@users.noreply.github.com> Date: Thu, 23 May 2024 03:22:24 -0400 Subject: [PATCH] Update main.lua I saw some people in CFX forums having issues with this function. I suggested switching it to this function and everything worked well for them again. Not exactly sure what caused this but it did work : ) --- server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.lua b/server/main.lua index 6531e2d5..ad14a4a6 100644 --- a/server/main.lua +++ b/server/main.lua @@ -11,7 +11,7 @@ local updatingCops = false -- Functions local function UpdateBlips() local dutyPlayers = {} - local players = QBCore.Functions.GetQBPlayers() + local players = QBCore.Functions.GetPlayers() for i = 1, #players do local v = players[i] if v and (v.PlayerData.job.type == 'leo' or v.PlayerData.job.type == 'ems') and v.PlayerData.job.onduty then