Skip to content

Commit

Permalink
fix: use sharedConfig in server.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Feb 8, 2024
1 parent eb312a1 commit e6130d7
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 @@ -123,7 +123,7 @@ RegisterNetEvent('qbx_storerobbery:server:trySafe', function()
local leoCount = exports.qbx_core:GetDutyCountType('leo')

if not closestSafeIndex then return end
if leoCount < config.minimumCops and config.notEnoughCopsNotify then
if leoCount < sharedConfig.minimumCops and sharedConfig.notEnoughCopsNotify then
exports.qbx_core:Notify(source, Lang:t('error.no_police', {Required = config.minimumCops}), 'error')
return
end
Expand Down

0 comments on commit e6130d7

Please sign in to comment.