InvManager: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Otutytaqo (talk | contribs)
No edit summary
m Reverted edits by Otutytaqo (Talk) to last version by ArielF
 
Line 1: Line 1:
>== Functions ==
== Functions ==


=== GetInventoryItemParameter ===
=== GetInventoryItemParameter ===
'''Definition:'''<br>
'''Definition:'''<br>
GetInventoryItemParameter([[itemid]],string name) =&gt; string value&lt;br&gt;
GetInventoryItemParameter([[itemid]],string name) => string value<br>
&lt;br&gt;
<br>
'''Description:'''&lt;br&gt;
'''Description:'''<br>
Returns information about an inventory item.&lt;br&gt;
Returns information about an inventory item.<br>
&lt;br&gt;
<br>
'''Arguments:'''&lt;br&gt;
'''Arguments:'''<br>
'''itemid''' [[itemid]] of item to query.&lt;br&gt;
'''itemid''' [[itemid]] of item to query.<br>
'''name''' information to query.&lt;br&gt;
'''name''' information to query.<br>
&lt;br&gt;
<br>
'''Returns:'''&lt;br&gt;
'''Returns:'''<br>
Returns the value of the information yor are querying or nil.&lt;br&gt;
Returns the value of the information yor are querying or nil.<br>
&lt;br&gt;
<br>
'''Example:'''&lt;br&gt;
'''Example:'''<br>
&lt;source lang=&quot;lua&quot;&gt;
<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'
&lt;/source&gt;
</source>
&lt;br&gt;&lt;br&gt;
<br><br>


=== InventoryItemToType ===
=== InventoryItemToType ===
'''Definition:'''&lt;br&gt;
'''Definition:'''<br>
'''Description:'''&lt;br&gt;
'''Description:'''<br>
'''Arguments:'''&lt;br&gt;
'''Arguments:'''<br>
'''Returns:'''&lt;br&gt;
'''Returns:'''<br>
'''Example:'''&lt;br&gt;
'''Example:'''<br>
&lt;br&gt;&lt;br&gt;
<br><br>


=== InventoryItemTypeToName ===
=== InventoryItemTypeToName ===
'''Definition:'''&lt;br&gt;
'''Definition:'''<br>
'''Description:'''&lt;br&gt;
'''Description:'''<br>
'''Arguments:'''&lt;br&gt;
'''Arguments:'''<br>
'''Returns:'''&lt;br&gt;
'''Returns:'''<br>
'''Example:'''&lt;br&gt;
'''Example:'''<br>
&lt;br&gt;&lt;br&gt;
<br><br>


=== GetInventoryItemPrototype ===
=== GetInventoryItemPrototype ===
'''Definition:'''&lt;br&gt;
'''Definition:'''<br>
'''Description:'''&lt;br&gt;
'''Description:'''<br>
'''Arguments:'''&lt;br&gt;
'''Arguments:'''<br>
'''Returns:'''&lt;br&gt;
'''Returns:'''<br>
'''Example:'''&lt;br&gt;
'''Example:'''<br>
&lt;br&gt;&lt;br&gt;
<br><br>


[[Category:Tables]]
[[Category:Tables]]
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://ehorefit.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
----
=[http://ehorefit.co.cc CLICK HERE]=
----
</div>

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: