API GetInventoryItemMass

From Vendetta Lua
Jump to: navigation, search

GetInventoryItemMass

Definition: GetInventoryItemMass(int itemid) -> float mass
Description:
get mass of inventory item
Arguments:
itemid inventory item
Returns:
path mass of item as float in tons
Example:

GetInventoryItemMass(1234) -> 4.000

the mass of item 1234 is 4000kg