<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Malicious+Hero</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Malicious+Hero"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Malicious_Hero"/>
	<updated>2026-05-24T06:53:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34767</id>
		<title>HeroInventory</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34767"/>
		<updated>2013-02-05T21:44:32Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
community page link[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=6310]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
You're able to add items by editing g_items.lua.&lt;br /&gt;
&lt;br /&gt;
==Callbacks==&lt;br /&gt;
===onPlayerUseItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool onPlayerUseItem( int itemID, int itemAmount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* source = player using the item&lt;br /&gt;
&lt;br /&gt;
The callback is found in e_item_use.lua in the folder &amp;quot;events&amp;quot;. Examples are shown.&lt;br /&gt;
&lt;br /&gt;
===onPlayerPickupItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool onPlayerPickupItem( element playerElement, int itemID, string itemDroppedBy )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The callback is found in e_item_pickup.lua in the folder &amp;quot;events&amp;quot;. Examples are shown.&lt;br /&gt;
==Player Functions==&lt;br /&gt;
===addPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addPlayerItem ( element playerElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
        addPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The element you wish to add an item to.&lt;br /&gt;
	itemID - The item ID; This can be found in g_items.lua.&lt;br /&gt;
	amount - The amount of the item you want.&lt;br /&gt;
@description&lt;br /&gt;
	This will add an item to a client.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===refreshClientGroups===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool refreshClientGroups( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	refreshClientGroups&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
		&lt;br /&gt;
@description&lt;br /&gt;
	This is not really a function used when exporting; but it's important this command remains&lt;br /&gt;
	in this resource because without this, groups would not be sync properly.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeItemFromPlayer===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeItemFromPlayer( element playerElement, int itemID, [ int amount ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeItemFromPlayer&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to remove an item from a player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===transferPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool transferPlayerItem( element playerElement, element targetElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	transferPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	targetElement - The target.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===doesPlayerHaveItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool doesPlayerHaveItem( element playerElement, int itemID)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	doesPlayerHaveItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
@returns&lt;br /&gt;
	if returning true, it will return the amount as well.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===getPlayerItemAmount===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getPlayerItemAmount( element playerElement, int itemID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	getPlayerItemAmount&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to get a player's item amount&lt;br /&gt;
@returns&lt;br /&gt;
	The amount item. If false, they don't have the item&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Group Functions==&lt;br /&gt;
===addInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addInventoryGroup( string group_name, path imagesrc )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	addInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
	imagesrc - The picture you want to associate with the group.&lt;br /&gt;
@description&lt;br /&gt;
	This will add a inventory group, which will allow the server to create new items.&lt;br /&gt;
	Please keep in mind that in s_inventory_config.lua, you are able to set the maximum amount&lt;br /&gt;
	of groups you allow.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeInventoryGroup( string group_name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
@description&lt;br /&gt;
	This will remove an inventory group.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34766</id>
		<title>HeroInventory</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34766"/>
		<updated>2013-02-05T21:44:17Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
community page link[http://community.mtasa.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=6310]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
You're able to add items by editing g_items.lua.&lt;br /&gt;
&lt;br /&gt;
==Callbacks==&lt;br /&gt;
===onPlayerUseItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool onPlayerUseItem( int itemID, int itemAmount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* source = player using the item&lt;br /&gt;
&lt;br /&gt;
The callback is found in e_item_use.lua in the folder &amp;quot;events&amp;quot;. Examples are shown.&lt;br /&gt;
&lt;br /&gt;
===onPlayerUseItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool onPlayerPickupItem( element playerElement, int itemID, string itemDroppedBy )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The callback is found in e_item_pickup.lua in the folder &amp;quot;events&amp;quot;. Examples are shown.&lt;br /&gt;
==Player Functions==&lt;br /&gt;
===addPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addPlayerItem ( element playerElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
        addPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The element you wish to add an item to.&lt;br /&gt;
	itemID - The item ID; This can be found in g_items.lua.&lt;br /&gt;
	amount - The amount of the item you want.&lt;br /&gt;
@description&lt;br /&gt;
	This will add an item to a client.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===refreshClientGroups===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool refreshClientGroups( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	refreshClientGroups&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
		&lt;br /&gt;
@description&lt;br /&gt;
	This is not really a function used when exporting; but it's important this command remains&lt;br /&gt;
	in this resource because without this, groups would not be sync properly.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeItemFromPlayer===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeItemFromPlayer( element playerElement, int itemID, [ int amount ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeItemFromPlayer&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to remove an item from a player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===transferPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool transferPlayerItem( element playerElement, element targetElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	transferPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	targetElement - The target.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===doesPlayerHaveItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool doesPlayerHaveItem( element playerElement, int itemID)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	doesPlayerHaveItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
@returns&lt;br /&gt;
	if returning true, it will return the amount as well.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===getPlayerItemAmount===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getPlayerItemAmount( element playerElement, int itemID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	getPlayerItemAmount&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to get a player's item amount&lt;br /&gt;
@returns&lt;br /&gt;
	The amount item. If false, they don't have the item&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Group Functions==&lt;br /&gt;
===addInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addInventoryGroup( string group_name, path imagesrc )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	addInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
	imagesrc - The picture you want to associate with the group.&lt;br /&gt;
@description&lt;br /&gt;
	This will add a inventory group, which will allow the server to create new items.&lt;br /&gt;
	Please keep in mind that in s_inventory_config.lua, you are able to set the maximum amount&lt;br /&gt;
	of groups you allow.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeInventoryGroup( string group_name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
@description&lt;br /&gt;
	This will remove an inventory group.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroBook&amp;diff=34584</id>
		<title>HeroBook</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroBook&amp;diff=34584"/>
		<updated>2013-01-21T13:47:49Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
It's hell of a lot of work to build tons of GUIs for police manuals or other books on servers. HeroBook is a system that allows ANY user to create a book or a novel rather. The server controls who is able to write a book through exported functions, and the server controls who is able to read what book. Check out HeroInventory, you will be able to integrate this book system into HeroInventory for smoother usage.&lt;br /&gt;
&lt;br /&gt;
==Integrate Into HeroInventory==&lt;br /&gt;
More information on HeroInventory can be found here: http://wiki.multitheftauto.com/wiki/HeroInventory&lt;br /&gt;
&lt;br /&gt;
*'''Download an image that will suit the book you're trying to integrate.'''&lt;br /&gt;
*'''Add this image into meta.xml'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;file src=&amp;quot;images/items/BookImageName.png&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''Add a new items into 'g_items.lua'''' Below is simply an example.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&amp;quot;images/items/BookImageName.png&amp;quot;, &amp;quot;LSPD Book&amp;quot;, &amp;quot;Books&amp;quot;} -- ITEM ID: 2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
It should look somewhat like this:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
itemArchive = -- {picture, name, group_name}&lt;br /&gt;
{&lt;br /&gt;
	{&amp;quot;images/items/Hat.png&amp;quot;, &amp;quot;Hat&amp;quot;, &amp;quot;Clothes&amp;quot;}, -- ITEM ID: 1 - This is an example.&lt;br /&gt;
	{&amp;quot;images/items/BookImageName.png&amp;quot;, &amp;quot;LSPD Book&amp;quot;, &amp;quot;Books&amp;quot;} -- ITEM ID: 2&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''In server/s_item_use.lua, you can now create a reaction to clicking on the book.'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if itemID == 2 then&lt;br /&gt;
   exports[&amp;quot;hero-book&amp;quot;]:showClientBook( source, 1 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above simply shows a created book (Book ID #1). In this example, book ID #1 is a LSPD Book. The client should now be reading the LSPD book.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
===deleteBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil deleteAllBooks(  )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		deleteAllBooks&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
&lt;br /&gt;
	@description&lt;br /&gt;
		This will delete all books.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===deleteBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil deleteBook( int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		deleteBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will delete a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===addBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil addBook( string title, element authorElement, table content )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		addBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		title - The title of the book.&lt;br /&gt;
		authorElement - Not the author's name. The actual element of the player.&lt;br /&gt;
		content - The content of the book; Which is stored in a table for page reasons.&lt;br /&gt;
	@description&lt;br /&gt;
		This will add a book to the SQL database.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===updateBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil updateBook( int book_id, table tableData)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		updateBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
		tableData - The data of the book. View getBookData for more information.&lt;br /&gt;
	@description&lt;br /&gt;
		This will save book data into the SQL database.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===getBookData===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getBookData( int book_id, string highlight )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		getBookData&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
		highlight - Searches only one specific piece of the book data.&lt;br /&gt;
	@description&lt;br /&gt;
		This will fetch data for a book into table data. Use the SQL&lt;br /&gt;
		field names as reference for variables.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Player Usage Functions==&lt;br /&gt;
===showClientBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil showClientBook( element playerElement, int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		showClientBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		playerElement - The element you want to edit the book.&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will make a client read a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===clientEditBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil clientEditBook( element playerElement, int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		clientEditBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		playerElement - The element you want to edit the book.&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will make a client edit a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroBook&amp;diff=34583</id>
		<title>HeroBook</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroBook&amp;diff=34583"/>
		<updated>2013-01-21T13:47:25Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
It's hell of a lot of work to build tons of GUIs for police manuals or other books on servers. HeroBook is a system that allows ANY user to create a book or a novel rather. The server controls who is able to write a book through exported functions, and the server controls who is able to read what book. Check out HeroInventory, you will be able to integrate this book system into HeroInventory for smoother usage.&lt;br /&gt;
&lt;br /&gt;
==Integrate Into HeroInventory==&lt;br /&gt;
More information on HeroInventory can be found here: http://wiki.multitheftauto.com/wiki/HeroInventory&lt;br /&gt;
&lt;br /&gt;
*'''Download an image that will suit the book you're trying to integrate.'''&lt;br /&gt;
*'''Add this image into meta.xml'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;file src=&amp;quot;images/items/BookImageName.png&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''Add a new items into 'g_items.lua'''' Below is simply an example.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&amp;quot;images/items/BookImageName.png&amp;quot;, &amp;quot;LSPD Book&amp;quot;, &amp;quot;Books&amp;quot;} -- ITEM ID: 2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
It should look somewhat like this:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
itemArchive = -- {picture, name, group_name}&lt;br /&gt;
{&lt;br /&gt;
	{&amp;quot;images/items/Hat.png&amp;quot;, &amp;quot;Hat&amp;quot;, &amp;quot;Clothes&amp;quot;}, -- ITEM ID: 1 - This is an example.&lt;br /&gt;
	{&amp;quot;images/items/BookImageName.png&amp;quot;, &amp;quot;LSPD Book&amp;quot;, &amp;quot;Books&amp;quot;} -- ITEM ID: 2&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''In server/s_item_use.lua, you can now create a reaction to clicking on the book.'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if itemID == 2 then&lt;br /&gt;
   exports[&amp;quot;hero-book&amp;quot;]:showClientBook( source, 1 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above simply shows a created book (Book ID #1). In this example, book ID #1 is a LSPD Book. The client should now be reading the LSPD book.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
===deleteBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil deleteAllBooks(  )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		deleteAllBooks&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
&lt;br /&gt;
	@description&lt;br /&gt;
		This will delete all books.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===deleteBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil deleteBook( int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		deleteBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will delete a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===addBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil addBook( string title, element authorElement, table content )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		addBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		title - The title of the book.&lt;br /&gt;
		authorElement - Not the author's name. The actual element of the player.&lt;br /&gt;
		content - The content of the book; Which is stored in a table for page reasons.&lt;br /&gt;
	@description&lt;br /&gt;
		This will add a book to the SQL database.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===updateBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil updateBook( int book_id, table tableData)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		updateBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
		tableData - The data of the book. View getBookData for more information.&lt;br /&gt;
	@description&lt;br /&gt;
		This will save book data into the SQL database.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===getBookData===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getBookData( int book_id, string highlight )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		getBookData&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
		highlight - Searches only one specific piece of the book data.&lt;br /&gt;
	@description&lt;br /&gt;
		This will fetch data for a book into table data. Use the SQL&lt;br /&gt;
		field names as reference for variables.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Client Functions==&lt;br /&gt;
===showClientBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil showClientBook( element playerElement, int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		showClientBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		playerElement - The element you want to edit the book.&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will make a client read a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===clientEditBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil clientEditBook( element playerElement, int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		clientEditBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		playerElement - The element you want to edit the book.&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will make a client edit a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroBook&amp;diff=34582</id>
		<title>HeroBook</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroBook&amp;diff=34582"/>
		<updated>2013-01-21T02:00:09Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: Created page with &amp;quot;==Description== It's hell of a lot of work to build tons of GUIs for police manuals or other books on servers. HeroBook is a system that allows ANY user to create a book or a nov...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
It's hell of a lot of work to build tons of GUIs for police manuals or other books on servers. HeroBook is a system that allows ANY user to create a book or a novel rather. The server controls who is able to write a book through exported functions, and the server controls who is able to read what book. Check out HeroInventory, you will be able to integrate this book system into HeroInventory for smoother usage.&lt;br /&gt;
&lt;br /&gt;
==Integrate Into HeroInventory==&lt;br /&gt;
More information on HeroInventory can be found here: http://wiki.multitheftauto.com/wiki/HeroInventory&lt;br /&gt;
&lt;br /&gt;
*'''Download an image that will suit the book you're trying to integrate.'''&lt;br /&gt;
*'''Add this image into meta.xml'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;file src=&amp;quot;images/items/BookImageName.png&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''Add a new items into 'g_items.lua'''' Below is simply an example.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&amp;quot;images/items/BookImageName.png&amp;quot;, &amp;quot;LSPD Book&amp;quot;, &amp;quot;Books&amp;quot;} -- ITEM ID: 2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
It should look somewhat like this:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
itemArchive = -- {picture, name, group_name}&lt;br /&gt;
{&lt;br /&gt;
	{&amp;quot;images/items/Hat.png&amp;quot;, &amp;quot;Hat&amp;quot;, &amp;quot;Clothes&amp;quot;}, -- ITEM ID: 1 - This is an example.&lt;br /&gt;
	{&amp;quot;images/items/BookImageName.png&amp;quot;, &amp;quot;LSPD Book&amp;quot;, &amp;quot;Books&amp;quot;} -- ITEM ID: 2&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''In server/s_item_use.lua, you can now create a reaction to clicking on the book.'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
if itemID == 2 then&lt;br /&gt;
   exports[&amp;quot;hero-book&amp;quot;]:showClientBook( source, 1 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The code above simply shows a created book (Book ID #1). In this example, book ID #1 is a LSPD Book. The client should now be reading the LSPD book.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
===deleteBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil deleteAllBooks(  )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		deleteAllBooks&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
&lt;br /&gt;
	@description&lt;br /&gt;
		This will delete all books.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===deleteBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil deleteBook( int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		deleteBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will delete a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===addBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil addBook( string title, element authorElement, table content )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		addBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		title - The title of the book.&lt;br /&gt;
		authorElement - Not the author's name. The actual element of the player.&lt;br /&gt;
		content - The content of the book; Which is stored in a table for page reasons.&lt;br /&gt;
	@description&lt;br /&gt;
		This will add a book to the SQL database.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===updateBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil updateBook( int book_id, table tableData)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		updateBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
		tableData - The data of the book. View getBookData for more information.&lt;br /&gt;
	@description&lt;br /&gt;
		This will save book data into the SQL database.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===getBookData===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getBookData( int book_id, string highlight )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		getBookData&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
		highlight - Searches only one specific piece of the book data.&lt;br /&gt;
	@description&lt;br /&gt;
		This will fetch data for a book into table data. Use the SQL&lt;br /&gt;
		field names as reference for variables.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===showClientBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil showClientBook( element playerElement, int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		showClientBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		playerElement - The element you want to edit the book.&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will make a client read a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===clientEditBook===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nil clientEditBook( element playerElement, int book_id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	@title&lt;br /&gt;
		clientEditBook&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		playerElement - The element you want to edit the book.&lt;br /&gt;
		book_id - The book's ID.&lt;br /&gt;
	@description&lt;br /&gt;
		This will make a client edit a book.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34487</id>
		<title>HeroInventory</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34487"/>
		<updated>2013-01-13T23:19:11Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
You're able to add items by editing g_items.lua.&lt;br /&gt;
&lt;br /&gt;
==Callbacks==&lt;br /&gt;
===onPlayerUseItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool onPlayerUseItem( int itemID, int itemAmount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* source = player using the item&lt;br /&gt;
&lt;br /&gt;
The callback is found in s_item_use.lua in the folder &amp;quot;server&amp;quot;. Examples are shown.&lt;br /&gt;
==Player Functions==&lt;br /&gt;
===addPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addPlayerItem ( element playerElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
        addPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The element you wish to add an item to.&lt;br /&gt;
	itemID - The item ID; This can be found in g_items.lua.&lt;br /&gt;
	amount - The amount of the item you want.&lt;br /&gt;
@description&lt;br /&gt;
	This will add an item to a client.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===refreshClientGroups===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool refreshClientGroups( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	refreshClientGroups&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
		&lt;br /&gt;
@description&lt;br /&gt;
	This is not really a function used when exporting; but it's important this command remains&lt;br /&gt;
	in this resource because without this, groups would not be sync properly.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeItemFromPlayer===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeItemFromPlayer( element playerElement, int itemID, [ int amount ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeItemFromPlayer&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to remove an item from a player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===transferPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool transferPlayerItem( element playerElement, element targetElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	transferPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	targetElement - The target.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===doesPlayerHaveItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool doesPlayerHaveItem( element playerElement, int itemID)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	doesPlayerHaveItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
@returns&lt;br /&gt;
	if returning true, it will return the amount as well.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===getPlayerItemAmount===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getPlayerItemAmount( element playerElement, int itemID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	getPlayerItemAmount&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to get a player's item amount&lt;br /&gt;
@returns&lt;br /&gt;
	The amount item. If false, they don't have the item&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Group Functions==&lt;br /&gt;
===addInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addInventoryGroup( string group_name, path imagesrc )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	addInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
	imagesrc - The picture you want to associate with the group.&lt;br /&gt;
@description&lt;br /&gt;
	This will add a inventory group, which will allow the server to create new items.&lt;br /&gt;
	Please keep in mind that in s_inventory_config.lua, you are able to set the maximum amount&lt;br /&gt;
	of groups you allow.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeInventoryGroup( string group_name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
@description&lt;br /&gt;
	This will remove an inventory group.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34486</id>
		<title>HeroInventory</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34486"/>
		<updated>2013-01-13T20:57:08Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
==Callbacks==&lt;br /&gt;
===onPlayerUseItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool onPlayerUseItem( int itemID, int itemAmount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* source = player using the item&lt;br /&gt;
&lt;br /&gt;
The callback is found in s_item_use.lua in the folder &amp;quot;server&amp;quot;. Examples are shown.&lt;br /&gt;
==Player Functions==&lt;br /&gt;
===addPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addPlayerItem ( element playerElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
        addPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The element you wish to add an item to.&lt;br /&gt;
	itemID - The item ID; This can be found in g_items.lua.&lt;br /&gt;
	amount - The amount of the item you want.&lt;br /&gt;
@description&lt;br /&gt;
	This will add an item to a client.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===refreshClientGroups===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool refreshClientGroups( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	refreshClientGroups&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
		&lt;br /&gt;
@description&lt;br /&gt;
	This is not really a function used when exporting; but it's important this command remains&lt;br /&gt;
	in this resource because without this, groups would not be sync properly.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeItemFromPlayer===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeItemFromPlayer( element playerElement, int itemID, [ int amount ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeItemFromPlayer&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to remove an item from a player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===transferPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool transferPlayerItem( element playerElement, element targetElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	transferPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	targetElement - The target.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===doesPlayerHaveItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool doesPlayerHaveItem( element playerElement, int itemID)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	doesPlayerHaveItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
@returns&lt;br /&gt;
	if returning true, it will return the amount as well.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===getPlayerItemAmount===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getPlayerItemAmount( element playerElement, int itemID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	getPlayerItemAmount&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to get a player's item amount&lt;br /&gt;
@returns&lt;br /&gt;
	The amount item. If false, they don't have the item&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Group Functions==&lt;br /&gt;
===addInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addInventoryGroup( string group_name, path imagesrc )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	addInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
	imagesrc - The picture you want to associate with the group.&lt;br /&gt;
@description&lt;br /&gt;
	This will add a inventory group, which will allow the server to create new items.&lt;br /&gt;
	Please keep in mind that in s_inventory_config.lua, you are able to set the maximum amount&lt;br /&gt;
	of groups you allow.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeInventoryGroup( string group_name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
@description&lt;br /&gt;
	This will remove an inventory group.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34485</id>
		<title>HeroInventory</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34485"/>
		<updated>2013-01-13T20:51:53Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
==Player Functions==&lt;br /&gt;
===addPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addPlayerItem ( element playerElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
        addPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The element you wish to add an item to.&lt;br /&gt;
	itemID - The item ID; This can be found in g_items.lua.&lt;br /&gt;
	amount - The amount of the item you want.&lt;br /&gt;
@description&lt;br /&gt;
	This will add an item to a client.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===refreshClientGroups===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool refreshClientGroups( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	refreshClientGroups&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
		&lt;br /&gt;
@description&lt;br /&gt;
	This is not really a function used when exporting; but it's important this command remains&lt;br /&gt;
	in this resource because without this, groups would not be sync properly.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeItemFromPlayer===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeItemFromPlayer( element playerElement, int itemID, [ int amount ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeItemFromPlayer&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to remove an item from a player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===transferPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool transferPlayerItem( element playerElement, element targetElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	transferPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	targetElement - The target.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
	amount - The amount you wish to remove. You can leave this blank to remove everything.&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===doesPlayerHaveItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool doesPlayerHaveItem( element playerElement, int itemID)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	doesPlayerHaveItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to move one item to another player.&lt;br /&gt;
@returns&lt;br /&gt;
	if returning true, it will return the amount as well.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===getPlayerItemAmount===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getPlayerItemAmount( element playerElement, int itemID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	getPlayerItemAmount&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The player.&lt;br /&gt;
	itemID - The item ID&lt;br /&gt;
@description&lt;br /&gt;
	Use this function to get a player's item amount&lt;br /&gt;
@returns&lt;br /&gt;
	The amount item. If false, they don't have the item&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Group Functions==&lt;br /&gt;
===addInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addInventoryGroup( string group_name, path imagesrc )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	addInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
	imagesrc - The picture you want to associate with the group.&lt;br /&gt;
@description&lt;br /&gt;
	This will add a inventory group, which will allow the server to create new items.&lt;br /&gt;
	Please keep in mind that in s_inventory_config.lua, you are able to set the maximum amount&lt;br /&gt;
	of groups you allow.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===removeInventoryGroup===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeInventoryGroup( string group_name )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
	removeInventoryGroup&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	group_name - Indicates the group name that you wish to add.&lt;br /&gt;
@description&lt;br /&gt;
	This will remove an inventory group.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34484</id>
		<title>HeroInventory</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34484"/>
		<updated>2013-01-13T20:43:05Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
===addPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addPlayerItem ( element playerElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
        addPlayerItem&lt;br /&gt;
@author&lt;br /&gt;
	Malicious Hero.&lt;br /&gt;
@parameters&lt;br /&gt;
	playerElement - The element you wish to add an item to.&lt;br /&gt;
	itemID - The item ID; This can be found in g_items.lua.&lt;br /&gt;
	amount - The amount of the item you want.&lt;br /&gt;
@description&lt;br /&gt;
	This will add an item to a client.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34483</id>
		<title>HeroInventory</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34483"/>
		<updated>2013-01-13T20:42:45Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
===addPlayerItem===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addPlayerItem ( element playerElement, int itemID, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
@title&lt;br /&gt;
addPlayerItem&lt;br /&gt;
	@author&lt;br /&gt;
		Malicious Hero.&lt;br /&gt;
	@parameters&lt;br /&gt;
		playerElement - The element you wish to add an item to.&lt;br /&gt;
		itemID - The item ID; This can be found in g_items.lua.&lt;br /&gt;
		amount - The amount of the item you want.&lt;br /&gt;
	@description&lt;br /&gt;
		This will add an item to a client.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34482</id>
		<title>HeroInventory</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HeroInventory&amp;diff=34482"/>
		<updated>2013-01-13T20:40:47Z</updated>

		<summary type="html">&lt;p&gt;Malicious Hero: Created page with &amp;quot;==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...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
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.&lt;/div&gt;</summary>
		<author><name>Malicious Hero</name></author>
	</entry>
</feed>