mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-19 06:46:03 +01:00
Update commands.lua
This commit is contained in:
@@ -17,7 +17,7 @@ if config.enableAopCommand then
|
|||||||
end, false)
|
end, false)
|
||||||
RegisterCommand(config.aopCommand, function(source, args, rawCommand)
|
RegisterCommand(config.aopCommand, function(source, args, rawCommand)
|
||||||
if admin then
|
if admin then
|
||||||
TriggerServerEvent("registerAop", string.sub(rawCommand, string.len(config.aopCommand + 1), string.len(rawCommand)))
|
TriggerServerEvent("registerAop", string.sub(rawCommand, string.len(config.aopCommand) + 1, string.len(rawCommand)))
|
||||||
else
|
else
|
||||||
TriggerEvent("chat:addMessage", {
|
TriggerEvent("chat:addMessage", {
|
||||||
args = {"~r~You don't have permission to set the aop."}
|
args = {"~r~You don't have permission to set the aop."}
|
||||||
|
|||||||
Reference in New Issue
Block a user