InvManager: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Darkgrey (talk | contribs)
New page: == Functions == === GetInventoryItemParameter === '''Definition:'''<br> GetInventoryItemParameter(itemid,string name) => string value<br> <br> '''Description:'''<br> Returns informati...
 
m Reverted edits by Otutytaqo (Talk) to last version by ArielF
 
(2 intermediate revisions by 2 users not shown)
Line 47: Line 47:
'''Example:'''<br>
'''Example:'''<br>
<br><br>
<br><br>
[[Category:Tables]]

Latest revision as of 18:54, 20 November 2010

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:
<source lang="lua"> InvManager.GetInventoryItemParameter(3038547509, 'Name') = 'Revenant MkIII' InvManager.GetInventoryItemParameter(1039533688, 'Name') = 'Centurion MkIII' InvManager.GetInventoryItemParameter(1039533688, 'Volume') = '100' InvManager.GetInventoryItemParameter(595219148, 'Mass') = '0.5' </source>

InventoryItemToType

Definition:
Description:
Arguments:
Returns:
Example:


InventoryItemTypeToName

Definition:
Description:
Arguments:
Returns:
Example:


GetInventoryItemPrototype

Definition:
Description:
Arguments:
Returns:
Example: