I need Help Lua

[Jeremy|2|STEAM_0:0:194387675] Lua Error:

[ERROR] addons/darkrpmodification-master/lua/darkrp_modules/funk/sh_notsignal.lua:17: attempt to call field ‘defineChatCommand’ (a nil value)

  1. unknown - addons/darkrpmodification-master/lua/darkrp_modules/funk/sh_notsignal.lua:17
  2. doInclude - [C]:-1
    3. loadModules - gamemodes/starwarsrp/gamemode/libraries/modificationloader.lua:172
    4. Call - gamemodes/starwarsrp/gamemode/libraries/modificationloader.lua:294
    5. unknown - gamemodes/starwarsrp/gamemode/cl_init.lua:105

File :

local function PlayerNotsignal(ply, args)
if args == “” then
DarkRP.notify(ply, 1, 4, DarkRP.getPhrase(“invalid_x”, “argument”, “”))
return “”
end
local DoSay = function(text)
if text == “” then
DarkRP.notify(ply, 1, 4, DarkRP.getPhrase(“invalid_x”, “argument”, “”))
return
end
for k,v in pairs(player.GetAll()) do
DarkRP.talkToPerson(v, Color(255,0,0,255), "[Notsignal] " … ply:Nick(), Color(255, 255, 0, 255), text, ply)
end
end
return args, DoSay
end
DarkRP.defineChatCommand(“notsignal”, PlayerNotsignal, 1.5)
DarkRP.defineChatCommand(“ns”, PlayerNotsignal, 1.5)

DarkRP.declareChatCommand
{
command = “notsignal”,
description = “Notsignal senden.”,
delay = 1.5
}

DarkRP.declareChatCommand
{
command = “ns”,
description = “Notsignal senden.”,
delay = 1.5
}


(User was banned for this post ("Missed the sticky and undescriptive thread title. Go to the DEVELOPER DISCUSSION for help with LUA code and make your title more descriptive" - Kiwi))

It seems like you’re using DarkRP.declareChatCommand as a function, showed here, yet you’re declaring DarkR.declareChatCommand as a table. declareChatCommand only has 2 parameters as per the wiki, so drop the 3rd one.

So ?
DarkRP.defineChatCommand(“notsignal”, PlayerNotsignal)