Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Giana committed Mar 19, 2023
1 parent 43d3630 commit d8f42ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ end)

QBCore.Functions.CreateCallback('g-drugselling:server:getCopCount', function(source, cb)
local src = source
local policeCount = 0
local amount = QBCore.Functions.GetDutyCount("police")
local amount = QBCore.Functions.GetDutyCount('police')
CachedPolice[src] = amount
cb(amount)
end)

0 comments on commit d8f42ee

Please sign in to comment.