Need urgent help with inventory

I’m trying to edit DInventory to support more entities.
I’m trying to make the entitiy “armor” show up and store in the inventory.
http://www.diffchecker.com/z5qz4dri

Result?


[ERROR] gamemodes/darkrp/gamemode/rp_inventory.lua:391: attempt to index global 'v' (a nil value)
  1. func - gamemodes/darkrp/gamemode/rp_inventory.lua:391
   2. unknown - lua/includes/modules/net.lua:31

Heres where you register the entities

Anyone can help? Really need this fixed asap.
Without editing the main file it won’t work and says


[ERROR] gamemodes/darkrp/gamemode/rp_inventory.lua:407: table index is nil
  1. func - gamemodes/darkrp/gamemode/rp_inventory.lua:407
   2. unknown - lua/includes/modules/net.lua:31



[editline]13th September 2013[/editline]

I’m so stupid, fixed!

[editline]13th September 2013[/editline]

Now dropping it doesn’t work.

Help anyone?

Anyone can help with the no drop thingy?
Also brandon quit marking my threads as dumb, I’m pretty sure you were just like me when you started.

That code looks like it wasn’t meant to be used… I see so many error’s, even from the bad ways of doing comments, looks as if someone was programming java… I’ll see if I can fix most of the junk that I see in this file…

Or, if garry knew how to code, he wouldn’t complain about large scripts after coding larger games. :rock:

The code isn’t mine, the owner abandoned it.
There is no other better inventory currently that I can use, if you know one point me to it.

Bumping, really need help!