Skip to content

Commit

Permalink
Update commands.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
DevX32 authored Oct 17, 2023
1 parent eaed172 commit a531e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lib.addCommand('admincar', {
args = {},
permission = false,
}, function(source)
if not (exports.qbx_core:HasPermission(source, 'savecar')) then
if not (exports.qbx_core:HasPermission(source, Config.Events['savecar'])) or HasPermission(source, Config.Events['savecar']) then
NoPerms(source)
return
end
Expand Down

0 comments on commit a531e12

Please sign in to comment.