Derp inv bug

Each time I use derp inv, I get this error.


 [autorun\client\cl_drpinv.lua:113] attempt to index global 'items' (a nil value)


also i get


 [autorun\client\cl_drpinv.lua:178] attempt to index local 'info' (a nil value)


(line 103-156)


 	local list1 = vgui.Create("DPanelList")
	list1:SetSize(439, 296)
	list1:SetSpacing( 5 )
	list1:EnableHorizontal( false )
	list1:EnableVerticalScrollbar( true )
	
	for k,v in pairs(cl_inv) do
		local DPanel1 = vgui.Create('DPanel')
		DPanel1:SetSize(419, 74)
		
		local info = items[k] -- should be faster...
		
		local icon = vgui.Create("SpawnIcon", DPanel1)
		icon:SetModel(info.model)
		icon:SetPos(5,5)
		icon:SetMouseInputEnabled(false)
		
		local name = vgui.Create("DLabel", DPanel1)
		name:SetText(info.name)
		name:SizeToContents()
		name:SetPos(89, 5)
		
		local desc = vgui.Create("DLabel", DPanel1)
		desc:SetText(info.desc)
		desc:SizeToContents()
		desc:SetPos(89, 20)
		
		local amt = vgui.Create("DLabel", DPanel1)
		amt:SetText("Amount: " .. v)
		amt:SizeToContents()
		amt:SetPos(89, 54)
		
		local drop = vgui.Create("DButton", DPanel1)
		drop:SetSize(45, 15)
		drop:SetPos(310, 54)
		drop:SetText("Drop")
		drop.DoClick = function()
			RunConsoleCommand("drp_dropitem", k)
			DFrame1:Remove()
		end
		
		if info.useable then
			local use = vgui.Create("DButton", DPanel1)
			use:SetSize(45, 15)
			use:SetPos(360, 54)
			use:SetText("Use")
			use.DoClick = function()
				RunConsoleCommand("drp_useitem", k)
				DFrame1:Remove()
			end
		end
		
		list1:AddItem(DPanel1)
	end



This is line 113


 	local info = items[k] -- should be faster... 

This is line 160-205




	local list2 = vgui.Create("DPanelList")
	list2:SetSize(439, 296)
	list2:SetSpacing( 5 )
	list2:EnableHorizontal( false )
	list2:EnableVerticalScrollbar( true )
	
	for k,v in pairs(cl_sweps) do
		local DPanel1 = vgui.Create('DPanel')
		DPanel1:SetSize(419, 74)
		
		local info = weps[v.class] -- should be faster...
		
		local icon = vgui.Create("SpawnIcon", DPanel1)
		icon:SetModel(v.model)
		icon:SetPos(5,5)
		icon:SetMouseInputEnabled(false)
		
		local name = vgui.Create("DLabel", DPanel1)
		name:SetText(info.name)
		name:SizeToContents()
		name:SetPos(89, 5)
		


this is line 178


 name:SetText(info.name) 

Thats not the right file…? The error is referring to line 113, but the file you provided is 54 lines long; Not much anyone will be able to do for you if you cant read.

Also I dont think its a “Bug”. Im pretty sure you tried to add items and registerd one of them wrong.

Hmm, sorry about that edited. Also this only happens to me, not anyone else. I don’t have this in my addons folder nor does anyone else, but I am the only one getting it. So it can’t be that I entered a swep wrong, although I did add some sweps.

Don’t even try to edit DerpInv, you will get shittons of errors, I tried myself and I’m pretty good at lua. Something with it being bitchy about entities…

EDIT: If you add props it’ll probably be ok, just dont add any entities of any kind…I know you 5 year old trolls out there would argue a prop is an entity, but you get what I mean -_-

OK, to clear all this up, yes a prop is an entity, hell, everything that is not part of the map (the map has entities too, but lets leave that out since your probably not adding those)
is an entity, but props are things you spawn out of the q menu under the props list, they have no special functions or anything, and the only interactions you can have is to move them around, and blow up a select few (which should be classified under entities…but whatever)
and those are the only things that are “compatible” with DerpInv, for some retarded reason I dont know, ask the creator where he went wrong…

unfortunately, there are no other inventories…

Create one or pay someone to make you one.

Can’t do either of those. Guess i’m screwed…