• DermaListView.DoDoubleClick
    1 replies, posted
So I'm trying to run some code, this is what I'm doing: [lua] DermaListView.DoDoubleClick = function(parent, index, tlist) RunConsoleCommand("gp_shop_buy", tlist:GetValue(1)) print("gp_shop_buy "..tlist.GetValue(1).." Has been ran in console.") end [/lua] my error [code] [lua\vgui\dlistview_line.lua:148] attempt to index local 'self' (a number value) [/code] Does anybody know what could be causing the problem? edit: It's different if I use index [code] [entities\npc_shop\cl_init.lua:56] attempt to index local 'index' (a number value) [/code]
Could we see whole code, I don't think the error lies in what you posted.
Sorry, you need to Log In to post a reply to this thread.