diff --git a/server/commands.lua b/server/commands.lua index 7048ca1..6f339b4 100644 --- a/server/commands.lua +++ b/server/commands.lua @@ -28,6 +28,10 @@ function QBCore.Commands.Add(name, help, arguments, argsrequired, callback, perm args = { 'System', Lang:t('error.missing_args2') } }) end + + TriggerEvent('QBCore:Server:PreCommandExecution', source, name, args, rawCommand) + if WasEventCanceled() then return end + callback(source, args, rawCommand) end, restricted)