error stopping people from buying entities

[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:217: attempt to index field ‘inv’ (a nil value)

  1. customEntityLimitReached - gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:217
  2. callback - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:561
  3. unknown - addons/ghostmode/lua/autorun/server/sv_ghostmode.lua:697
  4. unknown - lua/includes/modules/concommand.lua:54

Getting this error in my console when i try to buy a entitiy.
Don’t know what i’ve done to break it.
Please help. Thanks

[editline]27th April 2015[/editline]

I have not edited any of the files it states in the error.

[editline]27th April 2015[/editline]

Fixed it i’m stupid.