What is this?
DInventory is an advanced DarkRP Inventory, And it’s easy to add items!
How do I add an item?
It’s pretty simple, you’re going to want to go into rp_inventory_items.lua, and here’s the format.
RPI:RegisterItem("weapon_pistol", "9mm Pistol", "A simple pistol.", "Weapons", Model("models/weapons/w_pistol.mdl"))
I want to add things other than weapons, How do I do that?
I’ve already put in another example you can see in the rp_inventory_items.lua, Here’s the format.
RPI:RegisterItem("drug", "Drug", "Gets you high.", "Consumables", Model("models/props_lab/jar01a.mdl"))
If you’ve found a bug please contact me via PM or post it on this thread.
How do I Install this?
*It’s pretty simple, It’s not an addon though. Drag the files in Darkrp > gamemode.
- Go into the init.lua (darkrp > gamemode > init.lua) then put this where the all the other AddCSLuaFiles are
Then, Scroll down until you find where all the includes are and put this -
DO THE SAME IN THE CL_INIT.LUA*
How do I pick up items?
On default it’s set to ALT + E