/VORP-Inventory

Inventory System

Primary LanguageC#GNU General Public License v3.0GPL-3.0

VORP-Inventory

Inventory System for VORP Core

Requirements

How to install

  • Download the lastest version of VORP Inventory
  • Copy and paste vorp_inventory folder to resources/vorp_inventory
  • Add ensure vorp_inventory to your server.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!

Features

  • 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.

API For Lua

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)

Wiki

Wiki VORP Inventory

Credits

Credits to @Trsak for create the base of this inventory interface

Credits to Redemrp_inventory