Inventory System for VORP Core
- Download the lastest version of VORP Inventory
- Copy and paste
vorp_inventory
folder toresources/vorp_inventory
- Add
ensure vorp_inventory
to yourserver.cfg
file - To change the language go to
resources/vorp_inventory/Config
and change the default language, also you will have to edit the html file to change the text on the inventory menu - Now you are ready!
- Unique weapons in order not to duplicate them.
- Each weapon has its own ammo and can have diferent type of ammo.
- Each weapon has its own modifications.
- When dropping or giving a weapon you give it with all the modifications and ammo.
- It also has usaable items.
- KLS.
For importing the API on top of your server resource file
vorpInventory = exports.vorp_inventory:vorp_inventoryApi()
this will return a table for simply using the inventory
- Uses:
- Quit weapon
vorpInventory.subWeapon(source,weaponId)
- Create and give new Weapon with the name of the weapon in capital letters
vorpInventory.addWeapon(source,weaponName)
- Add an item with quantity
vorpInventory.addItem(source,item,cuantity)
- Sub item with quantity
vorpInventory.subItem(source,item,subCuantity)
- Returns the item quantity
vorpInventory.getItemCuantity(source,item)
Credits to @Trsak for create the base of this inventory interface
Credits to Redemrp_inventory