RVR.Items.getItemData( itemType )
Gets the full item data for a given item typeRVR.Items.getItemInstance( itemType )
Creates a simple table for an item instance, currently just{ type = itemType }
, intended to be extended with item metadata like durability in the future.
type
- (string) Unique name for itemdisplayName
- (string) Name used in menusdescription
- (string) DescriptionmaxCount
- (int) Max stack size in inventoriesmodel
- (string) Dropped item + held item modelicon
- (string) Inventory iconisHeadGear
- (bool) Can this be equipped in head slotisBodyGear
- (bool) Can this be equipped in body slotisFootGear
- (bool) Can this be equipped in foot slotstackable
- (bool) Can this be stacked in inventory or as dropped item,swep
- (string) Name of custom swep to use for this itemviewModelOffset
- (vector) Clientside viewmodel offsetviewModelAng
- (ang) clientside viewmodel angleworldModelOffset
- (vector) Clientside worldmodel offsetworldModelAng
- (ang) clientside worldmodel angleconsumable
- (bool) Can this item be consumedfood
- (int) Food value of this item, requires consumablewater
- (int) Water value of this item, requires consumablehealth
- (int) Health value of this item, requires consumableonConsume
- (function) What do when consumehasDurability
- (bool) Does this item have durability, if defined,maxDurability
anddurabilityUse
are also requiredmaxDurability
- (int) Maximum durability, default for item spawndurabilityUse
- (int) How much durability to use whenwep:LoseDurability()
is useddurabilityUseRandomRange
- (int) Optional random addition to durabilityUse on damage, by adding random between-range/2
andrange