From 5d7ca88be4decb88291509fee35ca80afe383d02 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Fri, 24 Dec 2021 22:47:41 +0100 Subject: [PATCH] Update commands.lua Small changes --- ND_Core/source/client/commands.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ND_Core/source/client/commands.lua b/ND_Core/source/client/commands.lua index 4d43752..968fe84 100644 --- a/ND_Core/source/client/commands.lua +++ b/ND_Core/source/client/commands.lua @@ -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", { @@ -106,4 +106,4 @@ TriggerEvent("chat:addSuggestion", "/twt", "Send a Twotter in game. (Global Chat TriggerEvent("chat:addSuggestion", "/ooc", "Out Of Character chat Message. (Global Chat)", {{ name="Message", help="Put your questions or help request."}}) TriggerEvent("chat:addSuggestion", "/darkweb", "Send a anonymous message in game. (Global Chat)", {{ name="Message", help="Anonymous Message."}}) TriggerEvent("chat:addSuggestion", "/me", "Send message in the third person. (Proximity Chat)", {{ name="Action", help="action."}}) -TriggerEvent("chat:addSuggestion", "/help", "", {}) \ No newline at end of file +TriggerEvent("chat:addSuggestion", "/help", "", {})