Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Oct 11, 2023
1 parent 960c38d commit 603316f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ shared_scripts {
client_script 'client.lua'
server_script 'server.lua'

modules {
'qbx_core:playerdata',
'qbx_core:utils'
}
modules {'qbx_core:utils'}

files {
'html/index.html',
Expand Down
4 changes: 2 additions & 2 deletions server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ RegisterNetEvent('qb-storerobbery:server:openregister', function(IsDone)
if not ClosestRegisterIndex then return end
if #(PlayerCoords - Config.Registers[ClosestRegisterIndex].coords) > 2 then return end
if not StartedRegister[source] then return end
if Amount < Config.MinimumCops and Config.NotEnoughCopsNotify then
exports.qbx_core:Notify(PlayerSource, Lang:t('error.no_police', {Required = Config.MinimumCops}), 'error')
if Amount < Config.MinimumCops and Config.NotEnoughCopsNotify then
exports.qbx_core:Notify(source, Lang:t('error.no_police', {Required = Config.MinimumCops}), 'error')
return
end

Expand Down

0 comments on commit 603316f

Please sign in to comment.