From a531e12426bf590964d1400a0ecf146d00dba767 Mon Sep 17 00:00:00 2001 From: DevX32 <60389339+DevX32@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:04:35 +0545 Subject: [PATCH] Update commands.lua --- server/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/commands.lua b/server/commands.lua index 1d649f6..e700569 100644 --- a/server/commands.lua +++ b/server/commands.lua @@ -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