• Unknown command
    3 replies, posted
Hey i need help with this command... [CODE]//Server side concommand.Add( "Panel", PointSystemPanel ) hook.Add("PlayerSay", "Panel", function(ply, text) if text == "!ola" then ply:ConCommand("Panel") end end)[/CODE] [CODE]// Client side concommand.Add( "Panel", PointSystemPanel ) [/CODE] Sometimes it opens the panel for me, but most of time it says unknown command "Panel" , maybe this is because i dont really know where to put it in lua... I have cl_init in autorun/client and init.lua in autorun/server.
You're overwriting the concommands I would assume. Don't have the concommand.Add serverside.
I still get the same reaction ...Unknown Command "Panel"
use this for clienside: [CODE] function PointSystemPanel(ply,bind) if (string.find(bind,"Panel")) then -- Your code of function here end end hook.Add("PlayerBindPress","Panel",PointSystemPanel) [/CODE] And yeah, try to rename init.lua to something else.
Sorry, you need to Log In to post a reply to this thread.