Difference between revisions of "InvManager"
From Vendetta Lua
Line 1: | Line 1: | ||
− | + | == Functions == | |
=== GetInventoryItemParameter === | === GetInventoryItemParameter === | ||
− | '''Definition:''' | + | '''Definition:'''<br> |
− | GetInventoryItemParameter([[itemid]],string name) = | + | GetInventoryItemParameter([[itemid]],string name) => string value<br> |
− | + | <br> | |
− | '''Description:''' | + | '''Description:'''<br> |
− | Returns information about an inventory item. | + | Returns information about an inventory item.<br> |
− | + | <br> | |
− | '''Arguments:''' | + | '''Arguments:'''<br> |
− | '''itemid''' [[itemid]] of item to query. | + | '''itemid''' [[itemid]] of item to query.<br> |
− | '''name''' information to query. | + | '''name''' information to query.<br> |
− | + | <br> | |
− | '''Returns:''' | + | '''Returns:'''<br> |
− | Returns the value of the information yor are querying or nil. | + | Returns the value of the information yor are querying or nil.<br> |
− | + | <br> | |
− | '''Example:''' | + | '''Example:'''<br> |
− | + | <source lang="lua"> | |
InvManager.GetInventoryItemParameter(3038547509, 'Name') = 'Revenant MkIII' | InvManager.GetInventoryItemParameter(3038547509, 'Name') = 'Revenant MkIII' | ||
InvManager.GetInventoryItemParameter(1039533688, 'Name') = 'Centurion MkIII' | InvManager.GetInventoryItemParameter(1039533688, 'Name') = 'Centurion MkIII' | ||
InvManager.GetInventoryItemParameter(1039533688, 'Volume') = '100' | InvManager.GetInventoryItemParameter(1039533688, 'Volume') = '100' | ||
InvManager.GetInventoryItemParameter(595219148, 'Mass') = '0.5' | InvManager.GetInventoryItemParameter(595219148, 'Mass') = '0.5' | ||
− | + | </source> | |
− | + | <br><br> | |
=== InventoryItemToType === | === InventoryItemToType === | ||
− | '''Definition:''' | + | '''Definition:'''<br> |
− | '''Description:''' | + | '''Description:'''<br> |
− | '''Arguments:''' | + | '''Arguments:'''<br> |
− | '''Returns:''' | + | '''Returns:'''<br> |
− | '''Example:''' | + | '''Example:'''<br> |
− | + | <br><br> | |
=== InventoryItemTypeToName === | === InventoryItemTypeToName === | ||
− | '''Definition:''' | + | '''Definition:'''<br> |
− | '''Description:''' | + | '''Description:'''<br> |
− | '''Arguments:''' | + | '''Arguments:'''<br> |
− | '''Returns:''' | + | '''Returns:'''<br> |
− | '''Example:''' | + | '''Example:'''<br> |
− | + | <br><br> | |
=== GetInventoryItemPrototype === | === GetInventoryItemPrototype === | ||
− | '''Definition:''' | + | '''Definition:'''<br> |
− | '''Description:''' | + | '''Description:'''<br> |
− | '''Arguments:''' | + | '''Arguments:'''<br> |
− | '''Returns:''' | + | '''Returns:'''<br> |
− | '''Example:''' | + | '''Example:'''<br> |
− | + | <br><br> | |
[[Category:Tables]] | [[Category:Tables]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 18:54, 20 November 2010
Contents
Functions
GetInventoryItemParameter
Definition:
GetInventoryItemParameter(itemid,string name) => string value
Description:
Returns information about an inventory item.
Arguments:
itemid itemid of item to query.
name information to query.
Returns:
Returns the value of the information yor are querying or nil.
Example:
InvManager.GetInventoryItemParameter(3038547509, 'Name') = 'Revenant MkIII' InvManager.GetInventoryItemParameter(1039533688, 'Name') = 'Centurion MkIII' InvManager.GetInventoryItemParameter(1039533688, 'Volume') = '100' InvManager.GetInventoryItemParameter(595219148, 'Mass') = '0.5'
InventoryItemToType
Definition:
Description:
Arguments:
Returns:
Example:
InventoryItemTypeToName
Definition:
Description:
Arguments:
Returns:
Example:
GetInventoryItemPrototype
Definition:
Description:
Arguments:
Returns:
Example: