<?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=Hale</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=Hale"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Hale"/>
	<updated>2026-06-02T06:34:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadDFF&amp;diff=51313</id>
		<title>EngineLoadDFF</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadDFF&amp;diff=51313"/>
		<updated>2017-06-20T18:31:26Z</updated>

		<summary type="html">&lt;p&gt;Hale: /* Removed the second argument from examples due to confusions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note box|Please note the loading order that is used in the examples as other orders can cause collisions, textures or the DFF not to load due to technical limitations.}}&lt;br /&gt;
&lt;br /&gt;
This function loads a RenderWare Model (DFF) file into GTA.&lt;br /&gt;
&lt;br /&gt;
To successfully load your model with textures, be sure to use [[engineLoadTXD]] and [[engineImportTXD]] before calling this function. If some error occurs while loading the DFF, MTA will output a message - check out [[DFF error messages]] to know what they mean.&lt;br /&gt;
&lt;br /&gt;
This is a client side function. Be sure to transfer your DFF file by including it in the meta file.&lt;br /&gt;
&lt;br /&gt;
The returned [[DFF]] element is an element in the element tree, just like vehicles and objects. When the dff is destroyed, ie on resource unload or using [[destroyElement]], any elements that use the DFF, such as vehicles or objects will be reset.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dff engineLoadDFF ( string dff_file / string raw_data ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[DFF|EngineDFF]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dff_file / raw_data:''' The [[filepath]] to the DFF file you want to load or whole data buffer of the DFF file.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[DFF]] element if the dff file loaded, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example loads a combination of a custom DFF and TXD file to replace the Euros vehicle in-game. The collisions are embedded inside the DFF file.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot; )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example replaces a standard SA skin (in this example ID '190) with a custom skin model (DFF &amp;amp; TXD)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement ( getThisResource() ),&lt;br /&gt;
	function ()&lt;br /&gt;
		txd = engineLoadTXD ( &amp;quot;skinmodel.txd&amp;quot; ); -- change 'skinmodel' to your mod's file name&lt;br /&gt;
		engineImportTXD ( txd, 190 ); -- change the ID 190 into the GTA skin ID you with to replace with mod&lt;br /&gt;
		dff = engineLoadDFF ( &amp;quot;skinmodel.dff&amp;quot; ); -- change 'skinmodel' to your mod's file name&lt;br /&gt;
		engineReplaceModel ( dff, 190 ); -- change the ID 190 into the GTA skin ID you with to replace with mod&lt;br /&gt;
	end&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 3:''' This example replaces a default weapon with a custom weapon mod (TXD &amp;amp; DFF)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function replaceWeapon() &lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;m4.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 356)&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;m4.dff&amp;quot;) -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons)&lt;br /&gt;
engineReplaceModel ( dff, 356) -- Likewise, model ID, for M4 as example it's 356&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), replaceWeapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 4:''' This example loads a combination of custom TXD, COL and DFF files to replace an in-game model of a set of floors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; loading floor objects&amp;quot; )&lt;br /&gt;
col_floors = engineLoadCOL ( &amp;quot;models/office_floors.col&amp;quot; )&lt;br /&gt;
engineReplaceCOL ( col_floors, 3781 )&lt;br /&gt;
txd_floors = engineLoadTXD ( &amp;quot;models/office_floors.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd_floors, 3781 )&lt;br /&gt;
dff_floors = engineLoadDFF ( &amp;quot;models/office_floors.dff&amp;quot; )&lt;br /&gt;
engineReplaceModel ( dff_floors, 3781 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.4.1-9.07088|Added option to use raw data instead of a file name}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawAnimWindow&amp;diff=51225</id>
		<title>DxDrawAnimWindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawAnimWindow&amp;diff=51225"/>
		<updated>2017-06-08T22:22:09Z</updated>

		<summary type="html">&lt;p&gt;Hale: /* Grammar fix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is for creating and animating a dX Window.&lt;br /&gt;
* '''NOTE:''' This is made to be used clientside!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxDrawAnimWindow ( string text, int height, int width, int color, string element font, string anim)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''text:''' The text of the window&lt;br /&gt;
* '''height:''' The height of the window&lt;br /&gt;
* '''width:''' The width of the window&lt;br /&gt;
* '''color:''' The color of the window&lt;br /&gt;
* '''font:''' A element or string representing the font.&lt;br /&gt;
* '''anim:''' The easing or animation type. See https://wiki.multitheftauto.com/wiki/Easing] For more Types-&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside script&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function dxDrawAnimWindow(text,height,width,color,font,anim)&lt;br /&gt;
    local x,y = guiGetScreenSize()&lt;br /&gt;
 &lt;br /&gt;
    btwidth = width&lt;br /&gt;
    btheight = height/20&lt;br /&gt;
 &lt;br /&gt;
    local now = getTickCount()&lt;br /&gt;
    local elapsedTime = now - start&lt;br /&gt;
    local endTime = start + 1500&lt;br /&gt;
    local duration = endTime - start&lt;br /&gt;
    local progress = elapsedTime / duration&lt;br /&gt;
    local x1, y1, z1 = interpolateBetween ( 0, 0, 0, width, height, 255, progress, anim)&lt;br /&gt;
    local x2, y2, z2 = interpolateBetween ( 0, 0, 0, btwidth, btheight, btheight/11, progress, anim)&lt;br /&gt;
 &lt;br /&gt;
    posx = (x/2)-(x1/2)&lt;br /&gt;
    posy = (y/2)-(y1/2)&lt;br /&gt;
 &lt;br /&gt;
    dxDrawRectangle ( posx, posy-y2, x2, y2, color )&lt;br /&gt;
    dxDrawRectangle ( posx, posy, x1, y1, tocolor ( 0, 0, 0, 200 ) )&lt;br /&gt;
    dxDrawText ( text, 0, -(y1)-y2, x, y, tocolor ( 255, 255, 255, 255 ), z2,font,&amp;quot;center&amp;quot;,&amp;quot;center&amp;quot;)   &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use==&lt;br /&gt;
Always remember to define the &amp;quot;start&amp;quot; value with getTickCount() and use onClientRender or onClientPreRender&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function content()&lt;br /&gt;
     local color = tocolor ( 0, 0, 0, 200 )&lt;br /&gt;
     dxDrawAnimWindow ( &amp;quot;My Animated Window&amp;quot;, 520, 600, color, &amp;quot;default-bold&amp;quot;, &amp;quot;OutBounce&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
bindKey ( &amp;quot;F2&amp;quot;, &amp;quot;down&amp;quot;, main )&lt;br /&gt;
function main()&lt;br /&gt;
     start = getTickCount()&lt;br /&gt;
     addEventHandler ( &amp;quot;onClientRender&amp;quot;, getRootElement(), content )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Author: Bc#&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AddEventHandler&amp;diff=51224</id>
		<title>AddEventHandler</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AddEventHandler&amp;diff=51224"/>
		<updated>2017-06-08T20:57:19Z</updated>

		<summary type="html">&lt;p&gt;Hale: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}} &lt;br /&gt;
{{Note_box|It is strongly advised that you do not use the same name for your handler function as the event name, as this can lead to confusion if multiple handler functions are used.}}&lt;br /&gt;
This function will add an [[event]] handler. An event handler is a function that will be called when the event it's attached to is triggered. See [[event system]] for more information on how the event system works.&lt;br /&gt;
&lt;br /&gt;
Event handlers are functions that are called when a particular event happens. Each event specifies a specific set of variables that are passed to the event handler and can be read by your function. The following global variables are available for use in handler functions:&lt;br /&gt;
*'''source''': the element that triggered the event&lt;br /&gt;
*'''this''': the element that the event handler is attached to&lt;br /&gt;
*'''sourceResource''': the resource that triggered the event&lt;br /&gt;
*'''sourceResourceRoot''': the root element of the resource that triggered the event&lt;br /&gt;
*'''client''': the client that triggered the event using [[triggerServerEvent]]. Not set if the event was not triggered from a client.&lt;br /&gt;
{{New_feature|3|1.0|&lt;br /&gt;
*'''eventName''': the name of the event which triggered the handler function.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
It is important to remember that events pass up and down the [[element tree]]. An event triggered on the root element is triggered on every element in the tree. An event triggered on any other element is triggered on its ancestors (its parent element and its parent's parent etc) and its children, grandchildren and great-grandchildren. You can use the ''getPropagated'' argument to specify if you wish your handler to receive events that have propagated up or down the tree.&lt;br /&gt;
&lt;br /&gt;
The order in which event handlers are triggered is undefined, you should not rely on one event handler being executed before another.&lt;br /&gt;
{{Note|See [[Script security]] for tips on preventing cheaters when using events and element data}}&lt;br /&gt;
{{Note|See [[Event_Source_Element|Event Source Element]] for a descriptive visualization of the event system handling an event trigger.}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addEventHandler ( string eventName, element attachedTo, function handlerFunction, [ bool getPropagated = true, string priority = &amp;quot;normal&amp;quot; ] )    &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''eventName:''' The name of the [[event]] you want to attach the handler function to.&lt;br /&gt;
*'''attachedTo:''' The [[element]] you wish to attach the handler to. The handler will only be called when the event it is attached to is triggered for this element, or one of its children. Often, this can be the root element (meaning the handler will be called when the event is triggered for ''any'' element).&lt;br /&gt;
*'''handlerFunction:''' The handler function you wish to call when the event is triggered. This function will be passed all of the event's parameters as arguments, but it isn't required that it takes all of them.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''getPropagated:''' A boolean representing whether the handler will be triggered if the event was propagated down or up the [[element tree]] (starting from the source), and not triggered directly on attachedTo (that is, handlers attached with this argument set to ''false'' will only be triggered if ''source == this'').&lt;br /&gt;
{{New_feature|3.0131|1.3.1|&lt;br /&gt;
*'''priority :''' A string representing the trigger order priority relative to other event handlers of the same name. Possible values are:&lt;br /&gt;
**'''&amp;quot;high&amp;quot;'''&lt;br /&gt;
**'''&amp;quot;normal&amp;quot;'''&lt;br /&gt;
**'''&amp;quot;low&amp;quot;'''&lt;br /&gt;
''It is also possible to add finer priority control by appending a positive or negative number to the priority string. For example (in priority order for reference): &amp;quot;high+4&amp;quot; &amp;quot;high&amp;quot; &amp;quot;high-1&amp;quot; &amp;quot;normal-6&amp;quot; &amp;quot;normal-7&amp;quot; &amp;quot;low+1&amp;quot; &amp;quot;low&amp;quot; &amp;quot;low-1&amp;quot;''&lt;br /&gt;
'''Important note:''' Anything bound to a specific element will be run before other handlers that are bound to something higher in the element tree (like root) This means that &amp;quot;high+10&amp;quot; bound to root won't trigger before &amp;quot;normal&amp;quot; bound directly to an element.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the event handler was attached successfully. Returns ''false'' if the specified event could not be found or any parameters were invalid.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This serverside example sends a message to everyone in the server when a player spawns.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- define our handler function&lt;br /&gt;
function onPlayerSpawnHandler ( )&lt;br /&gt;
	-- get the player's name, source is the player because he was spawned&lt;br /&gt;
	local playerName = getPlayerName( source )&lt;br /&gt;
	-- output in the chat box that they've spawned&lt;br /&gt;
	outputChatBox ( playerName .. &amp;quot; has spawned!&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerSpawn&amp;quot;, root, onPlayerSpawnHandler ) -- root is a predefined global variable for getRootElement()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.0-9.03795|Added priority argument}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
[[ru:addEventHandler]]&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Predefined_variables_list&amp;diff=51092</id>
		<title>Predefined variables list</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Predefined_variables_list&amp;diff=51092"/>
		<updated>2017-05-27T14:35:01Z</updated>

		<summary type="html">&lt;p&gt;Hale: Added 'arg' predefined variable&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Lua Predefined variables'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
_G -- returns a table of all global variables&lt;br /&gt;
coroutine -- returns a table containing functions for threads&lt;br /&gt;
debug -- returns a table containing debug functions&lt;br /&gt;
math -- returns a table that contains mathematical functions&lt;br /&gt;
string -- returns a table containing functions for strings&lt;br /&gt;
table -- returns a table that contains functions for tables&lt;br /&gt;
_VERSION -- returns a string of the version of lua in format &amp;quot;Lua 5.1&amp;quot;&lt;br /&gt;
self -- used in methods&lt;br /&gt;
arg -- used in functions which use '...' as an argument (https://www.lua.org/pil/5.2.html)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MTA Predefined variables'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Shared&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
exports -- returns a table of resource names containing all export functions&lt;br /&gt;
resource -- returns a resource element of the resource the snippet was executed in&lt;br /&gt;
resourceRoot -- returns a resource root element of the resource the snippet was executed in&lt;br /&gt;
root -- returns the root element of the server&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client only&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiRoot -- returns the root element of all GUI elements.&lt;br /&gt;
localPlayer -- returns the player element of the local player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
The list of hidden variables, that can be found in functions - handlers:&lt;br /&gt;
&amp;lt;section name=&amp;quot;Shared&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
source -- The player or element the event was attached to&lt;br /&gt;
this -- Element, which was attached function-handler.&lt;br /&gt;
eventName -- the name of the event (&amp;quot;onResourceStart&amp;quot;, &amp;quot;onPlayerWasted&amp;quot; etc.)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server only&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
client -- the client that called the event &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;!-- mom, it's broken&lt;br /&gt;
sourceResourceRoot -- the root of the resource that called the event&lt;br /&gt;
sourceResource -- the resource that called the event&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://wiki.multitheftauto.com/wiki/AddEventHandler More details about hidden variables in functions and events]&lt;br /&gt;
&lt;br /&gt;
[[Element_tree]]&lt;br /&gt;
&lt;br /&gt;
List Predefined variables available in the HTTP files:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[php]&lt;br /&gt;
requestHeaders -- table, contains all HTTP headlines current page.&lt;br /&gt;
form -- table, contains all POST and GET settings, transferred current page.&lt;br /&gt;
cookies -- table, contains all COOKIE, transferred current page.&lt;br /&gt;
hostname -- string, contains IP or name host, which requested current page.&lt;br /&gt;
url -- string, URL current page.&lt;br /&gt;
user -- element, account user, which requested current page.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://wiki.multitheftauto.com/wiki/Resource_Web_Access More info about it]&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Predefined_variables_list&amp;diff=51091</id>
		<title>Predefined variables list</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Predefined_variables_list&amp;diff=51091"/>
		<updated>2017-05-27T14:33:33Z</updated>

		<summary type="html">&lt;p&gt;Hale: Added 'arg' predefined variable&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Lua Predefined variables'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
_G -- returns a table of all global variables&lt;br /&gt;
coroutine -- returns a table containing functions for threads&lt;br /&gt;
debug -- returns a table containing debug functions&lt;br /&gt;
math -- returns a table that contains mathematical functions&lt;br /&gt;
string -- returns a table containing functions for strings&lt;br /&gt;
table -- returns a table that contains functions for tables&lt;br /&gt;
_VERSION -- returns a string of the version of lua in format &amp;quot;Lua 5.1&amp;quot;&lt;br /&gt;
self -- used in methods&lt;br /&gt;
arg -- used in functions which use '...' as an argument ([https://www.lua.org/pil/5.2.html])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MTA Predefined variables'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Shared&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
exports -- returns a table of resource names containing all export functions&lt;br /&gt;
resource -- returns a resource element of the resource the snippet was executed in&lt;br /&gt;
resourceRoot -- returns a resource root element of the resource the snippet was executed in&lt;br /&gt;
root -- returns the root element of the server&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client only&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiRoot -- returns the root element of all GUI elements.&lt;br /&gt;
localPlayer -- returns the player element of the local player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
The list of hidden variables, that can be found in functions - handlers:&lt;br /&gt;
&amp;lt;section name=&amp;quot;Shared&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
source -- The player or element the event was attached to&lt;br /&gt;
this -- Element, which was attached function-handler.&lt;br /&gt;
eventName -- the name of the event (&amp;quot;onResourceStart&amp;quot;, &amp;quot;onPlayerWasted&amp;quot; etc.)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server only&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
client -- the client that called the event &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;!-- mom, it's broken&lt;br /&gt;
sourceResourceRoot -- the root of the resource that called the event&lt;br /&gt;
sourceResource -- the resource that called the event&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://wiki.multitheftauto.com/wiki/AddEventHandler More details about hidden variables in functions and events]&lt;br /&gt;
&lt;br /&gt;
[[Element_tree]]&lt;br /&gt;
&lt;br /&gt;
List Predefined variables available in the HTTP files:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[php]&lt;br /&gt;
requestHeaders -- table, contains all HTTP headlines current page.&lt;br /&gt;
form -- table, contains all POST and GET settings, transferred current page.&lt;br /&gt;
cookies -- table, contains all COOKIE, transferred current page.&lt;br /&gt;
hostname -- string, contains IP or name host, which requested current page.&lt;br /&gt;
url -- string, URL current page.&lt;br /&gt;
user -- element, account user, which requested current page.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://wiki.multitheftauto.com/wiki/Resource_Web_Access More info about it]&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Predefined_variables_list&amp;diff=51089</id>
		<title>Predefined variables list</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Predefined_variables_list&amp;diff=51089"/>
		<updated>2017-05-27T14:30:41Z</updated>

		<summary type="html">&lt;p&gt;Hale: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Lua Predefined variables'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
_G -- returns a table of all global variables&lt;br /&gt;
coroutine -- returns a table containing functions for threads&lt;br /&gt;
debug -- returns a table containing debug functions&lt;br /&gt;
math -- returns a table that contains mathematical functions&lt;br /&gt;
string -- returns a table containing functions for strings&lt;br /&gt;
table -- returns a table that contains functions for tables&lt;br /&gt;
_VERSION -- returns a string of the version of lua in format &amp;quot;Lua 5.1&amp;quot;&lt;br /&gt;
self -- used in methods&lt;br /&gt;
arg -- used in functions which use '...' as an argument&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MTA Predefined variables'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Shared&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
exports -- returns a table of resource names containing all export functions&lt;br /&gt;
resource -- returns a resource element of the resource the snippet was executed in&lt;br /&gt;
resourceRoot -- returns a resource root element of the resource the snippet was executed in&lt;br /&gt;
root -- returns the root element of the server&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client only&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiRoot -- returns the root element of all GUI elements.&lt;br /&gt;
localPlayer -- returns the player element of the local player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
The list of hidden variables, that can be found in functions - handlers:&lt;br /&gt;
&amp;lt;section name=&amp;quot;Shared&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
source -- The player or element the event was attached to&lt;br /&gt;
this -- Element, which was attached function-handler.&lt;br /&gt;
eventName -- the name of the event (&amp;quot;onResourceStart&amp;quot;, &amp;quot;onPlayerWasted&amp;quot; etc.)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server only&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
client -- the client that called the event &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;!-- mom, it's broken&lt;br /&gt;
sourceResourceRoot -- the root of the resource that called the event&lt;br /&gt;
sourceResource -- the resource that called the event&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://wiki.multitheftauto.com/wiki/AddEventHandler More details about hidden variables in functions and events]&lt;br /&gt;
&lt;br /&gt;
[[Element_tree]]&lt;br /&gt;
&lt;br /&gt;
List Predefined variables available in the HTTP files:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[php]&lt;br /&gt;
requestHeaders -- table, contains all HTTP headlines current page.&lt;br /&gt;
form -- table, contains all POST and GET settings, transferred current page.&lt;br /&gt;
cookies -- table, contains all COOKIE, transferred current page.&lt;br /&gt;
hostname -- string, contains IP or name host, which requested current page.&lt;br /&gt;
url -- string, URL current page.&lt;br /&gt;
user -- element, account user, which requested current page.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://wiki.multitheftauto.com/wiki/Resource_Web_Access More info about it]&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Predefined_variables_list&amp;diff=51088</id>
		<title>Predefined variables list</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Predefined_variables_list&amp;diff=51088"/>
		<updated>2017-05-27T14:20:40Z</updated>

		<summary type="html">&lt;p&gt;Hale: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Lua Predefined variables'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
_G -- returns a table of all global variables&lt;br /&gt;
coroutine -- returns a table containing functions for threads&lt;br /&gt;
debug -- returns a table containing debug functions.&lt;br /&gt;
math -- returns a table that contains mathematical functions.&lt;br /&gt;
string -- returns a table containing functions for strings&lt;br /&gt;
table -- returns a table that contains functions for tables&lt;br /&gt;
_VERSION -- returns a string of the version of lua in format &amp;quot;Lua 5.1&amp;quot;&lt;br /&gt;
self -- used in methods.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''MTA Predefined variables'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Shared&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
exports -- returns a table of resource names containing all export functions&lt;br /&gt;
resource -- returns a resource element of the resource the snippet was executed in&lt;br /&gt;
resourceRoot -- returns a resource root element of the resource the snippet was executed in&lt;br /&gt;
root -- returns the root element of the server&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client only&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiRoot -- returns the root element of all GUI elements.&lt;br /&gt;
localPlayer -- returns the player element of the local player.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
The list of hidden variables, that can be found in functions - handlers:&lt;br /&gt;
&amp;lt;section name=&amp;quot;Shared&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
source -- The player or element the event was attached to&lt;br /&gt;
this -- Element, which was attached function-handler.&lt;br /&gt;
eventName -- the name of the event (&amp;quot;onResourceStart&amp;quot;, &amp;quot;onPlayerWasted&amp;quot; etc.)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server only&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
client -- the client that called the event &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;!-- mom, it's broken&lt;br /&gt;
sourceResourceRoot -- the root of the resource that called the event&lt;br /&gt;
sourceResource -- the resource that called the event&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://wiki.multitheftauto.com/wiki/AddEventHandler More details about hidden variables in functions and events]&lt;br /&gt;
&lt;br /&gt;
[[Element_tree]]&lt;br /&gt;
&lt;br /&gt;
List Predefined variables available in the HTTP files:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[php]&lt;br /&gt;
requestHeaders -- table, contains all HTTP headlines current page.&lt;br /&gt;
form -- table, contains all POST and GET settings, transferred current page.&lt;br /&gt;
cookies -- table, contains all COOKIE, transferred current page.&lt;br /&gt;
hostname -- string, contains IP or name host, which requested current page.&lt;br /&gt;
url -- string, URL current page.&lt;br /&gt;
user -- element, account user, which requested current page.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://wiki.multitheftauto.com/wiki/Resource_Web_Access More info about it]&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=51071</id>
		<title>Singleton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=51071"/>
		<updated>2017-05-25T12:18:30Z</updated>

		<summary type="html">&lt;p&gt;Hale: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Class}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This class allows you to restrict the instantiation of a specific class to one object.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
sbx320's classLib, can be found Here[https://github.com/sbx320/lua_utils/blob/master/classlib.lua]&lt;br /&gt;
&lt;br /&gt;
OOP on&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Singleton = {}&lt;br /&gt;
&lt;br /&gt;
function Singleton:getSingleton(...)&lt;br /&gt;
	if not self.ms_Instance then&lt;br /&gt;
		self.ms_Instance = self:new(...)&lt;br /&gt;
	end&lt;br /&gt;
	return self.ms_Instance&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:new(...)&lt;br /&gt;
	self.new = function() end&lt;br /&gt;
	local inst = new(self, ...)&lt;br /&gt;
	self.ms_Instance = inst&lt;br /&gt;
	return inst&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:isInstantiated()&lt;br /&gt;
	return self.ms_Instance ~= nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:virtual_destructor()&lt;br /&gt;
	for k, v in pairs(super(self)) do&lt;br /&gt;
		v.ms_Instance = nil&lt;br /&gt;
		v.new = Singleton.new&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Call class methods by newest instance'''&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- DEFINE CLASS&lt;br /&gt;
TestClass = inherit(Singleton)&lt;br /&gt;
&lt;br /&gt;
function TestClass:run()&lt;br /&gt;
   -- DO SOMETHING&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
TestClass:getSingleton():run()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=51070</id>
		<title>Singleton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=51070"/>
		<updated>2017-05-25T12:18:02Z</updated>

		<summary type="html">&lt;p&gt;Hale: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Class}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This class allows you to restrict the instantiation of a specific class to one object.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
sbx320's classLib, can be found Here[https://github.com/sbx320/lua_utils/blob/master/classlib.lua]&lt;br /&gt;
OOP on&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Singleton = {}&lt;br /&gt;
&lt;br /&gt;
function Singleton:getSingleton(...)&lt;br /&gt;
	if not self.ms_Instance then&lt;br /&gt;
		self.ms_Instance = self:new(...)&lt;br /&gt;
	end&lt;br /&gt;
	return self.ms_Instance&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:new(...)&lt;br /&gt;
	self.new = function() end&lt;br /&gt;
	local inst = new(self, ...)&lt;br /&gt;
	self.ms_Instance = inst&lt;br /&gt;
	return inst&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:isInstantiated()&lt;br /&gt;
	return self.ms_Instance ~= nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:virtual_destructor()&lt;br /&gt;
	for k, v in pairs(super(self)) do&lt;br /&gt;
		v.ms_Instance = nil&lt;br /&gt;
		v.new = Singleton.new&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Call class methods by newest instance'''&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- DEFINE CLASS&lt;br /&gt;
TestClass = inherit(Singleton)&lt;br /&gt;
&lt;br /&gt;
function TestClass:run()&lt;br /&gt;
   -- DO SOMETHING&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
TestClass:getSingleton():run()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AclGroupGetName&amp;diff=51069</id>
		<title>AclGroupGetName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AclGroupGetName&amp;diff=51069"/>
		<updated>2017-05-22T14:28:28Z</updated>

		<summary type="html">&lt;p&gt;Hale: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function is used to get the name of the given ACL group.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string aclGroupGetName ( aclgroup aclGroup )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[aclgroup]]:getName|name|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''aclGroup:''' The ACL group to get the name of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns the name of the given ACL group as a string if successful, otherwise ''false'' or ''nil'' if the aclGroup is invalid or it fails for some other reason.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example outputs to the console that &amp;quot;Admin's are ready to watch :)&amp;quot;. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, function()&lt;br /&gt;
	outputConsole(aclGroupGetName(aclGetGroup(&amp;quot;Admin&amp;quot;))..&amp;quot;'s are ready to watch :)&amp;quot;,root)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{ACL_functions}}&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AclGroupGetName&amp;diff=51068</id>
		<title>AclGroupGetName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AclGroupGetName&amp;diff=51068"/>
		<updated>2017-05-22T14:26:58Z</updated>

		<summary type="html">&lt;p&gt;Hale: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function is used to get the name of the given ACL group.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string aclGroupGetName ( aclgroup aclGroup )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[aclgroup]]:getName|name|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''aclGroup:''' The ACL group to get the name of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns the name of the given ACL group as a string if successfull, ''false''/''nil'' if the aclGroup is invalid or it fails for some other reason.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example outputs to the console that &amp;quot;Admin's are ready to watch :)&amp;quot;. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, function()&lt;br /&gt;
	outputConsole(aclGroupGetName(aclGetGroup(&amp;quot;Admin&amp;quot;))..&amp;quot;'s are ready to watch :)&amp;quot;,root)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{ACL_functions}}&lt;/div&gt;</summary>
		<author><name>Hale</name></author>
	</entry>
</feed>