Update commands.lua

Small changes
This commit is contained in:
Andyyy7666
2021-12-24 22:47:41 +01:00
committed by GitHub
parent 9a96248e70
commit 5d7ca88be4

View File

@@ -16,7 +16,7 @@ if config.enableAopCommand then
TriggerServerEvent("getAop")
end, false)
RegisterCommand(config.aopCommand, function(source, args, raw)
if admin == true then
if admin then
TriggerServerEvent("registerAop", string.gsub(raw, config.aopCommand .. " ", ""))
else
TriggerEvent("chat:addMessage", {