HeroInventory: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "==Description== HeroInventory is a new way to expand a roleplay server's features. This resource allows a server to not only archive items; but organize them appropriately! Addin...")
 
No edit summary
Line 1: Line 1:
==Description==
==Description==
HeroInventory is a new way to expand a roleplay server's features. This resource allows a server to not only archive items; but organize them appropriately! Adding items, and groups are very simple.
HeroInventory is a new way to expand a roleplay server's features. This resource allows a server to not only archive items; but organize them appropriately! Adding items, and groups are very simple.
==Functions==
===addPlayerItem===
<syntaxhighlight lang="lua">
bool addPlayerItem ( element playerElement, int itemID, int amount )
</syntaxhighlight>
<syntaxhighlight lang="lua">
@title
addPlayerItem
@author
Malicious Hero.
@parameters
playerElement - The element you wish to add an item to.
itemID - The item ID; This can be found in g_items.lua.
amount - The amount of the item you want.
@description
This will add an item to a client.
</syntaxhighlight>

Revision as of 20:42, 13 January 2013

Description

HeroInventory is a new way to expand a roleplay server's features. This resource allows a server to not only archive items; but organize them appropriately! Adding items, and groups are very simple.

Functions

addPlayerItem

bool addPlayerItem ( element playerElement, int itemID, int amount )
@title
addPlayerItem
	@author
		Malicious Hero.
	@parameters
		playerElement - The element you wish to add an item to.
		itemID - The item ID; This can be found in g_items.lua.
		amount - The amount of the item you want.
	@description
		This will add an item to a client.