Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
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 : )
  • Loading branch information
ruptz authored May 23, 2024
1 parent f440fd1 commit 9b6e479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b6e479

Please sign in to comment.