<?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=LopSided</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=LopSided"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/LopSided"/>
	<updated>2026-04-25T15:04:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementPosition&amp;diff=81517</id>
		<title>SetElementPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementPosition&amp;diff=81517"/>
		<updated>2024-12-17T07:57:31Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Reverted edits by CoolDark (talk) to last revision by FileEX&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Shared function}}&lt;br /&gt;
This function sets the position of an element to the specified coordinates.&lt;br /&gt;
{{Warning|Do not use this function to spawn a [[player]]. It will cause problems with other functions like [[warpPedIntoVehicle]]. Use [[spawnPlayer]] instead.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementPosition ( element theElement, float x, float y, float z [, bool warp = true ] )  &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:setPosition|position|getElementPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' A valid [[element]] to be moved.&lt;br /&gt;
*'''x:''' The x coordinate of the destination.&lt;br /&gt;
*'''y:''' The y coordinate of the destination.&lt;br /&gt;
*'''z:''' The z coordinate of the destination.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''warp:''' teleports players, resetting any animations they were doing. Setting this to ''false'' preserves the current animation.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function was successful, ''false'' otherwise.&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 example lets admins teleport 5 random players to themselves&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function randomPlayersToLocation(p)&lt;br /&gt;
    if not isPlayerStaff(p) then return end&lt;br /&gt;
&lt;br /&gt;
	local playersOnline = getElementsByType(&amp;quot;player&amp;quot;)&lt;br /&gt;
	local amount = #playersOnline&lt;br /&gt;
&lt;br /&gt;
	if amount == 0 then return end&lt;br /&gt;
&lt;br /&gt;
	for index = 1,(amount &amp;gt; 5 and 5 or amount) do&lt;br /&gt;
		local player = playersOnline[index]&lt;br /&gt;
		setElementPosition(player, getElementPosition(p))&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;randomtp&amp;quot;, randomPlayersToLocation)&lt;br /&gt;
addCommandHandler(&amp;quot;playershere&amp;quot;, randomPlayersToLocation)&lt;br /&gt;
&lt;br /&gt;
-- Utility function&lt;br /&gt;
local staffACLs = {&lt;br /&gt;
    aclGetGroup(&amp;quot;Admin&amp;quot;),&lt;br /&gt;
    aclGetGroup(&amp;quot;Moderator&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function isPlayerStaff(p)&lt;br /&gt;
	if isElement(p) and getElementType(p) == &amp;quot;player&amp;quot; and not isGuestAccount(getPlayerAccount(p)) then&lt;br /&gt;
		local object = getAccountName(getPlayerAccount(p))&lt;br /&gt;
&lt;br /&gt;
		for _, group in ipairs(staffACLs) do&lt;br /&gt;
			if isObjectInACLGroup(&amp;quot;user.&amp;quot; .. object, group) then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&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;
If you want to put a vehicle or player out of the water or simulate the position-resetting behaviour if CJ goes below the ground too far, then you need to retrieve a recommended coordinate on ground to place the element at. Take a look at [https://forum.mtasa.com/topic/132891-important-helprespawn-vehicle/?do=findComment&amp;amp;comment=1003198 this MTA forums post] for steps in the right direction.&lt;br /&gt;
&lt;br /&gt;
==Issues==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|539|Changing player position when he/she has a jetpack will remove the jetpack and bug when skin is changed}}&lt;br /&gt;
{{Issue|529|Player falls from his bike when its teleported by setElementPosition}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:setElementPosition]]&lt;br /&gt;
[[ru:setElementPosition]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FindRotation&amp;diff=81516</id>
		<title>FindRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FindRotation&amp;diff=81516"/>
		<updated>2024-12-17T07:57:27Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Reverted edits by CoolDark (talk) to last revision by Myonlake&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function takes two sets of XY coordinates. It returns the direction from point A to point B. This can for example be used to make peds face a given point.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float findRotation( float x1, float y1, float x2, float y2 )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''x1''': The X coordinate of the starting point.&lt;br /&gt;
* '''y1''': The Y coordinate of the starting point.&lt;br /&gt;
* '''x2''': The X coordinate of the target point.&lt;br /&gt;
* '''y2''': The Y coordinate of the target point.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function findRotation( x1, y1, x2, y2 ) &lt;br /&gt;
    local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) )&lt;br /&gt;
    return t &amp;lt; 0 and t + 360 or t&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This command makes the player who enters it face the player whose name is given.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server-side example&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;
addCommandHandler(&amp;quot;facePlayer&amp;quot;,function (player, _, targetName)&lt;br /&gt;
&lt;br /&gt;
	local target = getPlayerFromName(targetName); --get player name&lt;br /&gt;
	&lt;br /&gt;
	if not target then --if there isn't a player&lt;br /&gt;
		outputChatBox(&amp;quot;Invalid player&amp;quot;, player); --output to them and tell them that there's no player&lt;br /&gt;
                return; --end the function so nothing else goes through&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local x,y,z 	= getElementPosition(player); --get your position&lt;br /&gt;
	local tx,ty,tz 	= getElementPosition(target); --get the players position&lt;br /&gt;
	&lt;br /&gt;
	setPedRotation(player, findRotation(x,y,tx,ty) ); --let's set you facing them&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Original function by '''Doomed_Space_Marine'''. Fixed, tested and wiki-fied by '''robhol'''.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerChangesProtectedData&amp;diff=81515</id>
		<title>OnPlayerChangesProtectedData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerChangesProtectedData&amp;diff=81515"/>
		<updated>2024-12-17T07:56:59Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Reverted edits by CoolDark (talk) to last revision by Srslyyyy&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22790|This event is triggered when a player tries to change protected element data. The server protects element data with using [[Server_mtaserver.conf#elementdata_whitelisted|elementdata_whitelisted]] from '''mtaserver.conf''' and the '''clientChangesPolicy''' parameter in [[setElementData]].}}&lt;br /&gt;
==Parameters==&lt;br /&gt;
*'''element''': The affected element.&lt;br /&gt;
*'''key''': The name of the element data entry that has changed.&lt;br /&gt;
*'''value''': The value that the player sends.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who changes protected element data.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
The below example will ban all players who are trying to change protected element data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function processPlayerElementDataHack()&lt;br /&gt;
    addBan(source, &amp;quot;Element data hacking attempt&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerChangesProtectedData&amp;quot;, root, processPlayerElementDataHack)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsBrowserGPUEnabled&amp;diff=80827</id>
		<title>IsBrowserGPUEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsBrowserGPUEnabled&amp;diff=80827"/>
		<updated>2024-10-22T00:46:06Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function checks if the client has the &amp;quot;Enable GPU rendering&amp;quot; setting enabled, which allows the usage of things like WebGL in browsers.&lt;br /&gt;
&lt;br /&gt;
'''Note''': this is a global setting, not specific to any browser instance and can only be changed by the client.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isBrowserGPUEnabled()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser]]|gpuEnabled}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the client has browser GPU rendering enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsBrowserGPUEnabled&amp;diff=80826</id>
		<title>IsBrowserGPUEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsBrowserGPUEnabled&amp;diff=80826"/>
		<updated>2024-10-22T00:45:37Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function checks if the client has the &amp;quot;Enable GPU rendering&amp;quot; setting enabled, which allows the usage of things like WebGL in browsers.&lt;br /&gt;
&lt;br /&gt;
'''Note''': this is a global setting, not specific to any browser instance and can only be changed by the user.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isBrowserGPUEnabled()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser]]|gpuEnabled}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the client has browser GPU rendering enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsBrowserGPUEnabled&amp;diff=80825</id>
		<title>IsBrowserGPUEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsBrowserGPUEnabled&amp;diff=80825"/>
		<updated>2024-10-22T00:44:56Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Add note&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function checks if the client has the &amp;quot;Enable GPU rendering&amp;quot; setting enabled, which allows the usage of things like WebGL in browsers.&lt;br /&gt;
&lt;br /&gt;
**Note**: this is a global setting, not specific to any browser instance and can only be changed by the user.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isBrowserGPUEnabled()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser]]|gpuEnabled}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the client has browser GPU rendering enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsBrowserGPUEnabled&amp;diff=80824</id>
		<title>IsBrowserGPUEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsBrowserGPUEnabled&amp;diff=80824"/>
		<updated>2024-10-22T00:41:35Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Created page with &amp;quot;__NOTOC__ {{Client function}} This function checks if the client has the &amp;quot;Enable GPU rendering&amp;quot; setting enabled, which allows the usage of things like WebGL in browsers.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool isBrowserGPUEnabled() &amp;lt;/syntaxhighlight&amp;gt; {{OOP||Element/Browser|gpuEnabled}}  ===Returns=== Returns ''true'' if the client has browser GPU rendering enabled, ''false'' otherwise.  ==See Also== {{CEF_functions}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function checks if the client has the &amp;quot;Enable GPU rendering&amp;quot; setting enabled, which allows the usage of things like WebGL in browsers.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isBrowserGPUEnabled()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser]]|gpuEnabled}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the client has browser GPU rendering enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Adding_Pages_to_Categories_and_Templates&amp;diff=80810</id>
		<title>Template:Adding Pages to Categories and Templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Adding_Pages_to_Categories_and_Templates&amp;diff=80810"/>
		<updated>2024-10-15T23:28:48Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;page-category-note&amp;quot; style=&amp;quot;background: #CEDFF2; border: 3px solid #CEDFF2;&amp;quot;&amp;gt;&lt;br /&gt;
''Contributors:'' Did you create a page but it's not on this list? Confused? '''Read: [[Adding Pages to Categories and Templates]]'''&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Note&amp;diff=80809</id>
		<title>Template:Note</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Note&amp;diff=80809"/>
		<updated>2024-10-15T23:19:37Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;note-messagebox&amp;quot;&amp;gt;{{MessageBox|&lt;br /&gt;
   bordercolorhex = d5b5f5 |&lt;br /&gt;
   bgcolorhex = ccccff |&lt;br /&gt;
   bordertype = invalid |&lt;br /&gt;
   message = '''Note:''' {{{1}}} }}&amp;lt;/div&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Template documentation|Note template for notes in an article/page.|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;,N&amp;gt;&amp;lt;nowiki&amp;gt;{{Note|TEXT for the note}}&amp;lt;/nowiki&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;,N&amp;gt;&amp;lt;nowiki&amp;gt;{{Note|This function is not working in 1.0.0}}&amp;lt;/nowiki&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Note|This function is not working in 1.0.0}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Warning&amp;diff=80808</id>
		<title>Template:Warning</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Warning&amp;diff=80808"/>
		<updated>2024-10-15T23:17:31Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;warning-messagebox&amp;quot;&amp;gt;{{MessageBox|&lt;br /&gt;
   bordercolorhex = FFB2B2 |&lt;br /&gt;
   bgcolorhex = FFE5E5 |&lt;br /&gt;
   image = {{ #if: {{{2|}}} | File:Dialog-warning.png }} |&lt;br /&gt;
   title = Warning: |&lt;br /&gt;
   message = {{{1}}} }}&amp;lt;/div&amp;gt; &amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Template documentation|Warning template for in-line and page warnings.|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;,N&amp;gt;&amp;lt;nowiki&amp;gt;{{Warning|information|use warning image}}&amp;lt;/nowiki&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Example with warning image (recommended for page warnings):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;,N&amp;gt;&amp;lt;nowiki&amp;gt;{{Warning|information|true}}&amp;lt;/nowiki&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Warning|information|true}}&lt;br /&gt;
* Example without warning image (recommended for in-line warnings):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;,N&amp;gt;&amp;lt;nowiki&amp;gt;{{Warning|information}}&amp;lt;/nowiki&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Warning|information}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Template_documentation&amp;diff=80807</id>
		<title>Template:Template documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Template_documentation&amp;diff=80807"/>
		<updated>2024-10-15T23:14:50Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;template-documentation&amp;quot; style=&amp;quot;border: 1px solid #A5A5A5; background: #DAEFDD; padding: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;[[File:Applications-office.png]]Template Documentation&amp;lt;/h2&amp;gt;&lt;br /&gt;
{{{1}}}&lt;br /&gt;
&amp;lt;h3&amp;gt;Usage&amp;lt;/h3&amp;gt;&lt;br /&gt;
{{{2}}}&lt;br /&gt;
{{ #if: {{{3|}}} |&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
{{{3}}}}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:New_feature/item&amp;diff=80806</id>
		<title>Template:New feature/item</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:New_feature/item&amp;diff=80806"/>
		<updated>2024-10-15T20:09:03Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#ifexpr:({{{1|}}})&amp;gt;{{Current Version}}|&amp;lt;div class='new-feature-item' style='border: 2px solid #121319; border-radius: 10px; margin: 14px 0; overflow: hidden'&amp;gt;&amp;lt;div style='background: #121319; color: #fff; font-weight: bold; padding: 4px 8px'&amp;gt;ADDED/UPDATED IN VERSION {{{2}}} {{#if:{{{3|}}}|{{r|{{{3}}}}}|}}:&amp;lt;/div&amp;gt;&amp;lt;div style='padding: 4px 8px'&amp;gt;{{{4}}} &amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;| {{{4}}}}}[[Category:{{#switch:{{{5}}}|EN=Changes in|RU=Изменения в версии|AR|ES|HR|HU|PL|PT-BR=Mudanças em|RO|DE|AT|Other=Translated/Changes in|Changes in}} {{{2}}}]]&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;Template for using in function and event pages. For functions/events lists please use &amp;lt;nowiki&amp;gt;{{New items}}&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
#Version in numeric format&lt;br /&gt;
#Version in release format&lt;br /&gt;
#Revision&lt;br /&gt;
#Description&lt;br /&gt;
#Language&lt;br /&gt;
##Enter your language designation:&lt;br /&gt;
###EN - English&lt;br /&gt;
###RU - Russian (Русский)&lt;br /&gt;
###AR - Argentina (Argentina)&lt;br /&gt;
###ES - Spain (España)&lt;br /&gt;
###HR - Croatia (Hrvatska)&lt;br /&gt;
###HU - Hungary (Magyarország)&lt;br /&gt;
###PL - Poland (Polska)&lt;br /&gt;
###PT-BR - Portugal (Portugal)&lt;br /&gt;
###RO - Romania (România)&lt;br /&gt;
###DE - Germany (Deutschland)&lt;br /&gt;
###AT - Austria (Österreich)&lt;br /&gt;
###Other - languages not on this list&lt;br /&gt;
##If the language is Russian, then use '''[[Template:RU/New feature/item]]'''&lt;br /&gt;
&lt;br /&gt;
[[Category:Utility templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:New_items&amp;diff=80805</id>
		<title>Template:New items</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:New_items&amp;diff=80805"/>
		<updated>2024-10-15T20:08:45Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Add class&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#ifexpr:({{{1|}}})&amp;gt;{{Current Version}}|&amp;lt;div class='new-items' style='border: 2px solid #121319; border-radius: 10px; margin: 14px 0; overflow: hidden'&amp;gt;&amp;lt;div style='background: #121319; color: #fff; font-weight: bold; padding: 4px 8px'&amp;gt;ADDED/UPDATED IN VERSION {{{2}}} {{#if:{{{4|}}}|{{r|{{{4}}}}}|}}:&amp;lt;/div&amp;gt;&amp;lt;div style='padding: 4px 8px'&amp;gt;{{{3}}} &amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;| {{{3}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;Use this template for functions/events lists. In function and event pages use &amp;lt;nowiki&amp;gt;{{New feature/item}}&amp;lt;/nowiki&amp;gt;. This will prevent wrong pages appear in changelog category.&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
# Version float (value is compared with &amp;lt;code&amp;gt;&amp;amp;gt;&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Current Version}}&amp;lt;/nowiki&amp;gt; = {{Current Version}}&amp;lt;/code&amp;gt;)&lt;br /&gt;
# Version text (only visual, example: &amp;lt;code&amp;gt;{{Current Version|full}}&amp;lt;/code&amp;gt;)&lt;br /&gt;
# Text&lt;br /&gt;
# Revision number (only visual)&lt;br /&gt;
[[Category:Utility templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:New_feature/item&amp;diff=80804</id>
		<title>Template:New feature/item</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:New_feature/item&amp;diff=80804"/>
		<updated>2024-10-15T20:08:10Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Add class&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#ifexpr:({{{1|}}})&amp;gt;{{Current Version}}|&amp;lt;div class=&amp;quot;new-feature-item&amp;quot; style='border: 2px solid #121319; border-radius: 10px; margin: 14px 0; overflow: hidden'&amp;gt;&amp;lt;div style='background: #121319; color: #fff; font-weight: bold; padding: 4px 8px'&amp;gt;ADDED/UPDATED IN VERSION {{{2}}} {{#if:{{{3|}}}|{{r|{{{3}}}}}|}}:&amp;lt;/div&amp;gt;&amp;lt;div style='padding: 4px 8px'&amp;gt;{{{4}}} &amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;| {{{4}}}}}[[Category:{{#switch:{{{5}}}|EN=Changes in|RU=Изменения в версии|AR|ES|HR|HU|PL|PT-BR=Mudanças em|RO|DE|AT|Other=Translated/Changes in|Changes in}} {{{2}}}]]&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;Template for using in function and event pages. For functions/events lists please use &amp;lt;nowiki&amp;gt;{{New items}}&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
#Version in numeric format&lt;br /&gt;
#Version in release format&lt;br /&gt;
#Revision&lt;br /&gt;
#Description&lt;br /&gt;
#Language&lt;br /&gt;
##Enter your language designation:&lt;br /&gt;
###EN - English&lt;br /&gt;
###RU - Russian (Русский)&lt;br /&gt;
###AR - Argentina (Argentina)&lt;br /&gt;
###ES - Spain (España)&lt;br /&gt;
###HR - Croatia (Hrvatska)&lt;br /&gt;
###HU - Hungary (Magyarország)&lt;br /&gt;
###PL - Poland (Polska)&lt;br /&gt;
###PT-BR - Portugal (Portugal)&lt;br /&gt;
###RO - Romania (România)&lt;br /&gt;
###DE - Germany (Deutschland)&lt;br /&gt;
###AT - Austria (Österreich)&lt;br /&gt;
###Other - languages not on this list&lt;br /&gt;
##If the language is Russian, then use '''[[Template:RU/New feature/item]]'''&lt;br /&gt;
&lt;br /&gt;
[[Category:Utility templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Requirements&amp;diff=80710</id>
		<title>Template:Requirements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Requirements&amp;diff=80710"/>
		<updated>2024-10-13T20:51:52Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;mta-feature-requirements&amp;quot; style=&amp;quot;display:inline-block; border: 1px solid #a2a9b1; border-radius: 10px; overflow: hidden;&amp;quot;&amp;gt;&lt;br /&gt;
{| cellpadding=&amp;quot;4&amp;quot; style=&amp;quot;border-collapse: collapse;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;border-top-left-radius: 10px; font-weight: 600; background-color: #FFAA44; border-style: solid; border-width: 1px; border-color: #a2a9b1; color:#7A4A20&amp;quot;| Minimum server version&lt;br /&gt;
!width=60 style=&amp;quot;white-space: nowrap; border-top-right-radius: 10px; background-color: #FFCC66; border-style: solid; border-width: 1px; border-color: #a2a9b1; color:#202122&amp;quot;| {{{1}}}&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;border-bottom-left-radius: 10px; font-weight: 600; background-color: #FF6666; border-style: solid; border-width: 1px; border-color: #a2a9b1; color:#AA0028&amp;quot;| Minimum client version&lt;br /&gt;
!style=&amp;quot;white-space: nowrap; border-bottom-right-radius: 10px; background-color: #FFBBBB; border-style: solid; border-width: 1px; border-color: #a2a9b1; color: #202122&amp;quot;| {{{2}}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
'''Note''': Using this feature requires the resource to have the above minimum version declared in the [[Meta.xml|meta.xml]] '''&amp;lt;min_mta_version&amp;gt;''' section. ''e.g. &amp;lt;min_mta_version {{#ifeq: {{{1}}} |n/a||server=&amp;quot;{{{1}}}&amp;quot;}} {{#ifeq: {{{2}}} |n/a||client=&amp;quot;{{{2}}}&amp;quot;}} /&amp;gt;''&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/F%C5%91oldal&amp;diff=80705</id>
		<title>HU/Főoldal</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/F%C5%91oldal&amp;diff=80705"/>
		<updated>2024-10-13T18:08:22Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;/*border: 1px solid #D8D8D8;*/ padding-left: 15px; padding-right: 15px; height: 100%;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Mtalogo.png|left|100px|link=http://wiki.multitheftauto.com/]]'''Üdvözöllek a [[Multi Theft Auto]] wikin.''' Itt rengeteg információt találhatsz a Multi Theft Auto használatáról.&lt;br /&gt;
&lt;br /&gt;
Sok [[HU/How you can help|dologban segíthetsz Te is]], amivel fejleszted az MTA-t - készíts pályákat, játékmódokat, írj leírást, példákat a függvényekhez, írj útmutatókat, vagy csak játssz, és jelezd a hibákat amiket találtál! &lt;br /&gt;
&lt;br /&gt;
Ha bármilyen kérdésed van a scripteléssel kapcsolatban, vedd fel velünk a kapcsolatot az [[Discord |Discord csatornánkon.]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|-&lt;br /&gt;
|width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Input-gaming.png‎|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Játék&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;downloadmta&amp;quot; style=&amp;quot;background: #FFEEAA; border: 1px solid #FFCD19;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Go-down.png|link=http://mtasa.com/]] ''' [http://mtasa.com/ Töltsd le a Multi Theft Auto San Andreas {{Current Version|full}}-t!]'''&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[HU/Where to buy GTASA|Hol lehet megvásárolni a GTASA-t?]]&lt;br /&gt;
* [[HU/Client Manual | Kliens kézikönyv]]&lt;br /&gt;
&amp;lt;!-- * [[Changes_in_{{padleft:|3|{{Current Version|full}}}}| Changes in {{padleft:|3|{{Current Version|full}}}}]] --&amp;gt;&lt;br /&gt;
* [[Changes_in_{{padleft:|5|{{Current Version|full}}}}| Változtatások az {{padleft:|5|{{Current Version|full}}}} verzióban]]&lt;br /&gt;
* [[HU/Known_Issues_-_FAQ|Ismert problémák]]&lt;br /&gt;
* [[HU/Upgrading_from_MTA:Race|MTA:Race frissítése MTA:SA {{padleft:|3|{{Current Version|full}}}} -ra ]]&lt;br /&gt;
* [[HU/Server Manual|Szerver kézikönyv]]&lt;br /&gt;
* [[HU/Map manager|Map Manager]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Map Editor&amp;lt;/h3&amp;gt;&lt;br /&gt;
*[[HU/Resource:Editor|Kézikönyv]]&lt;br /&gt;
*[[HU/Resource:Editor/EDF|Editort definiáló fájl (EDF)]]&lt;br /&gt;
*[[HU/Resource:Editor/Plugins|Bővítmények]]&lt;br /&gt;
*[[HU/Resource:Editor#FAQ|Gyakran Ismételt Kérdések]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Package-x-generic.png‎|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Adatbázisok&amp;lt;/h3&amp;gt;&lt;br /&gt;
Az alábbi oldalakból megtudhatod mire képes a Lua az MTA-ban.&lt;br /&gt;
* [[HU/:Category:Resource|Resource katalógus]] - Igazán jól működő scriptek készítéséhez érdemes áttanulmányozni őket&lt;br /&gt;
* [[Client side scripts|Kliens oldali scriptek]] &lt;br /&gt;
* [[Modules|Modulok]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Applications-development.png‎‎‎|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;A Multi Theft Auto fejlesztése&amp;lt;/h3&amp;gt;&lt;br /&gt;
[[File:Go-down.png|link=http://nightly.mtasa.com/]] [http://nightly.mtasa.com/ Fejlesztői verzió]&lt;br /&gt;
* [[HU/Compiling_MTASA|MTA SA fordítása Windowson]]&lt;br /&gt;
* [[Building_MTASA_Server_on_GNU_Linux|MTA SA fordítása GNU/Linux rendszeren]]&lt;br /&gt;
* [[HU/Coding guidelines|Kódolási útmutató]]&lt;br /&gt;
* [http://code.google.com/p/mtasa-blue Google Code SVN]&lt;br /&gt;
* [[Roadmap|Tervezet]]&lt;br /&gt;
* [http://bugs.mtasa.com/ Hibák]&lt;br /&gt;
* [[Branches|Fejlesztési ágazatok]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Applications-office.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Wiki - Hogyan segíthetsz&amp;lt;/h3&amp;gt;&lt;br /&gt;
* Egészítsd ki a [[:Category:Incomplete|függvények hiányos leírású oldalát]].&lt;br /&gt;
* [[:Category:Needs_Example |Írj példákat függvények használatára]].&lt;br /&gt;
* Ellenőrizd az [[:Category:Needs Checking|ellenőrzésre váró lapokat]].&lt;br /&gt;
* Írj útmutatókat&lt;br /&gt;
* Fordíts wiki lapokat&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Internet-group-chat.png‎|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Közösség&amp;lt;/h3&amp;gt;&lt;br /&gt;
* [http://forum.multitheftauto.com/ Fórum]&lt;br /&gt;
* [https://discord.com/invite/mtasa Community Discord]&lt;br /&gt;
* [https://discord.com/invite/GNN6PRtTnu Development Discord]&lt;br /&gt;
* [http://community.mtasa.com/ MTA Community] - Ossz meg és tölts le resourceokat!&lt;br /&gt;
* [http://twitter.com/#!/MTAQA/ Twitter] - [http://www.youtube.com/user/MTAQA Youtube] - [http://plus.google.com/102014133442331779727/ Google+] - [http://www.moddb.com/mods/multi-theft-auto-san-andreas ModDB]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| width=&amp;quot;50%&amp;quot; style=&amp;quot;vertical-align:top;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Accessories-text-editor.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Scriptelés&amp;lt;/h3&amp;gt;&lt;br /&gt;
* [[HU/Bevezetés a scriptelésbe|Bevezetés a scriptelésbe]]&lt;br /&gt;
* [[HU/Introduction to Scripting the GUI|Bevezetés a GUI készítésébe]]&lt;br /&gt;
* [[HU/Debugging|Hibakeresés]] - Találd meg a hibát a kódodban&lt;br /&gt;
* [[HU/Resources|Bevezetés a Resourceokba]]&lt;br /&gt;
** [[HU/Resource Web Access|Resource Web Hozzáférés]] - Internet elérése&lt;br /&gt;
** [[HU/:Category:Resource|Resource katalógus]]&lt;br /&gt;
** [[HU/Meta.xml|Meta.xml]] - Minden resource alapja&lt;br /&gt;
** [[ACL]] - A megfelelő jogok meghatározása az összetettebb kódokhoz elengedhetetlen&lt;br /&gt;
* [[HU/Writing_Gamemodes|Játékmódok írása]]&lt;br /&gt;
* [[HU/Useful_Functions|Hasznos függvények]]&lt;br /&gt;
* [http://forum.mtasa.com/viewtopic.php?f=13&amp;amp;t=29363 Offline Wiki Másolatok]&lt;br /&gt;
Forum Linkek&lt;br /&gt;
* [https://forum.mtasa.com/forum/71-scripting/ Scripting Forum]&lt;br /&gt;
* [https://forum.mtasa.com/forum/123-tutorials/ Scripting Tutorials Sub-Forum]&lt;br /&gt;
* [https://forum.mtasa.com/topic/24702-mtasa-wiki-offline-copies-online-mirrors/ Offline Wiki Copies]&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:start-here.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Általános Lua Segítség&amp;lt;/h3&amp;gt;&lt;br /&gt;
Oldalak a Lua megértésehez:&lt;br /&gt;
*[http://www.lua.org/pil/index.html &amp;quot;Lua Programozás&amp;quot; Kézikönyv]&lt;br /&gt;
**[http://www.lua.org/manual/5.1/#index Lua belső/beépített függvények]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki]&lt;br /&gt;
*[http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html Nixstaller Lua útmutatója]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Preferences-system.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Referenciák&amp;lt;/h3&amp;gt;&lt;br /&gt;
* [[HU/Client Scripting Functions|Kliens-oldali függvények]]&lt;br /&gt;
* [[HU/Client Scripting Events|Kliens-oldali események]]&lt;br /&gt;
* [[HU/Server Scripting Functions|Szerver-oldali függvények]]&lt;br /&gt;
* [[HU/Server Scripting Events|Szerver-oldali események]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&lt;br /&gt;
* [[HU/MTA Classes|MTA Osztályok]] - MTA osztályok részletes leírása&lt;br /&gt;
** [[HU/Element|MTA Elemek]] / [[Element tree|Element ágak]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:System-file-manager.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;[[Id|ID Lista]]&amp;lt;/h3&amp;gt;&lt;br /&gt;
*[[HU/Animations|Animációk]]&lt;br /&gt;
*[[HU/Character Skins|Karakter skinek]]&lt;br /&gt;
*[[CJ_Clothes|CJ Ruhái]]&lt;br /&gt;
*[[HU/Garage|Garázs ID listák]]&lt;br /&gt;
*[[Interior IDs|Interiorok]]&lt;br /&gt;
*[[Material IDs|Material]]&lt;br /&gt;
*[[HU/Ped voices|Ped hangok]]&lt;br /&gt;
*[[HU/Projectiles|Lövedékek]]&lt;br /&gt;
*[[HU/Radar Blips|Radar jelzések]]&lt;br /&gt;
*[[HU/Sounds|Hangok]]&lt;br /&gt;
*[[HU/Vehicle IDs|Járművek]]&lt;br /&gt;
*[[Vehicle Colors|Jármű színek]]&lt;br /&gt;
*[[HU/Vehicle Upgrades|Jármű fejlesztések]]&lt;br /&gt;
*[[HU/Vehicle variants|Járművek egyedi tulajdonságai]]&lt;br /&gt;
*[[HU/Vehicle component manipulation|Jármű komponens változtatások]]&lt;br /&gt;
*[[HU/Weapons|Fegyverek]]&lt;br /&gt;
*[[HU/Weather|Időjárás]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Osi symbol.png|75px|link=http://opensource.org/|left]]&lt;br /&gt;
A '''Multi Theft Auto''' '''nyílt forráskódú'''. &lt;br /&gt;
&amp;lt;br/&amp;gt;Ez azt jelenti, hogy a játékot bárki jobbá teheti!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
|}&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding-left: 15px; padding-right: 15px;&amp;quot; class=&amp;quot;plainlinks&amp;quot;&amp;gt;&lt;br /&gt;
[[File:MTALogo_8ball.png|left|85px|link=Archive]]&lt;br /&gt;
&amp;lt;ul style=&amp;quot;list-style: none; width: 200px; float: left;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;'''A [[Multi Theft Auto]] - ról'''&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[[Archive|Archívum]]&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[[Press Coverage|Sajtó]]&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[http://code.google.com/p/mtasa-blue/people/list Fejlesztők]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul style=&amp;quot;list-style: none; width: 200px; float: left;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;'''Multi Theft Auto 0.5'''&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[[Archive#Multi_Theft_Auto_0.5|Letöltés]]&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;[[MTA 0.5r2 Known Issues|Ismert hibák]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul style=&amp;quot;list-style: none; width: 200px; float: left;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;'''Wiki Statisztikák'''&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;{{NUMBEROFARTICLES}} cikk&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;{{NUMBEROFPAGES}} oldal&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;{{NUMBEROFUSERS}} regisztrált felhasználó&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
{{Languages list|en}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Main_Page&amp;diff=80704</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Main_Page&amp;diff=80704"/>
		<updated>2024-10-13T17:36:37Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;display: flex; align-items: center; padding-left: 15px; padding-right: 15px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Mtalogo.png||100px|link=https://wiki.multitheftauto.com/]]&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: .5em&amp;quot;&amp;gt;&lt;br /&gt;
'''Welcome to the [[Multi Theft Auto]] wiki.''' On this wiki you'll find a wealth of information on using Multi Theft Auto.&lt;br /&gt;
 &lt;br /&gt;
There are many [[How you can help|things you can do to help us]] improve MTA - create a map, a gamemode, help document scripting functions, write example code, write tutorials or just play MTA and report the bugs you find.&lt;br /&gt;
 &lt;br /&gt;
If you have any questions or problems related to scripting, feel free to get in touch with us on [[Places To Chat#Scripting Help|Discord]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;margin-top: 1em; display: block;&amp;quot;&amp;gt;[ Stop playing with yourself ]&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;display: flex; flex-direction: row; flex-wrap: wrap;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;flex-grow: 1&amp;quot;&amp;gt; &amp;lt;!-- left column start --&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Input-gaming.png‎|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Play&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;downloadmta&amp;quot; style=&amp;quot;background: #FFEEAA; border: 1px solid #FFCD19;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Go-down.png|link=https://multitheftauto.com/]] ''' [https://multitheftauto.com/ Download Multi Theft Auto: San Andreas {{Current Version|full}}]'''&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Where to buy GTASA]]&lt;br /&gt;
* [[Client Manual]]&lt;br /&gt;
&amp;lt;!-- * [[Changes_in_{{padleft:|3|{{Current Version|full}}}}|Changes in {{padleft:|3|{{Current Version|full}}}}]] --&amp;gt;&lt;br /&gt;
* [[Changes_in_{{padleft:|5|{{Current Version|full}}}}|Changes in {{padleft:|5|{{Current Version|full}}}}]]&lt;br /&gt;
* [[Known_Issues_-_FAQ|Known Issues]]&lt;br /&gt;
* [[Server Manual]]&lt;br /&gt;
* [[Map manager|Map Manager]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Map Editor&amp;lt;/h3&amp;gt;&lt;br /&gt;
*[[Resource:Editor|Manual]]&lt;br /&gt;
*[[Resource:Editor/EDF|Editor Definition Format]]&lt;br /&gt;
*[[Resource:Editor/Plugins|Plugins]]&lt;br /&gt;
*[[Resource:Editor#FAQ|Frequently Asked Questions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Package-x-generic.png‎|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Databases&amp;lt;/h3&amp;gt;&lt;br /&gt;
This section outlines all the Lua capabilites MTA or resources provide.&lt;br /&gt;
* [[:Category:Resource|Resource Catalogue]] - You must learn these to make proper scripts&lt;br /&gt;
* [[Client side scripts]]&lt;br /&gt;
* [[Modules]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Applications-development.png‎‎‎|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Developing Multi Theft Auto&amp;lt;/h3&amp;gt;&lt;br /&gt;
[[File:Go-down.png|link=https://nightly.mtasa.com/]] [https://nightly.mtasa.com/ Nightly builds]&lt;br /&gt;
* [[Compiling_MTASA|Compiling MTASA on Windows]]&lt;br /&gt;
&amp;lt;!--* [[Building_MTASA_Server_on_Mac_OS_X|Compiling MTASA on Mac OS X]]--&amp;gt;&lt;br /&gt;
* [[Building_MTASA_Server_on_GNU_Linux|Compiling MTASA on GNU/Linux]]&lt;br /&gt;
* [[Coding guidelines]]&lt;br /&gt;
* [https://github.com/multitheftauto/mtasa-blue Main GitHub repository]&lt;br /&gt;
* [[Roadmap]]&lt;br /&gt;
* [https://github.com/multitheftauto/mtasa-blue/issues Bugtracker]&lt;br /&gt;
* [[Branches]]&lt;br /&gt;
*[[Forks|Forks and anti cheat]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Applications-office.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Wiki - How can you help&amp;lt;/h3&amp;gt;&lt;br /&gt;
* Finish documentation for [[:Category:Incomplete|Incomplete functions]].&lt;br /&gt;
* [[:Category:Needs_Example |Add examples to functions and events]].&lt;br /&gt;
* Review and verify [[:Category:Needs Checking|pages that need checking]].&lt;br /&gt;
* Write tutorials to help new people.&lt;br /&gt;
* Translate wiki pages.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Internet-group-chat.png‎|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Community&amp;lt;/h3&amp;gt;&lt;br /&gt;
* [https://forum.multitheftauto.com/ Forum]&lt;br /&gt;
* Community Discord: [https://discord.com/invite/mtasa Official MTA Discord server] ([https://forum.multitheftauto.com/topic/95008-multi-theft-autos-official-discord-server/ Forum post])&lt;br /&gt;
* Development Discord: [https://discord.com/invite/GNN6PRtTnu Server invite link]&lt;br /&gt;
* [https://community.multitheftauto.com/ MTA Community] - Share and download resources.&lt;br /&gt;
* [https://twitter.com/MTAQA Twitter] - [https://www.youtube.com/user/MTAQA YouTube] - [https://www.facebook.com/multitheftauto Facebook] - [https://www.moddb.com/mods/multi-theft-auto-san-andreas ModDB]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt; &amp;lt;!-- left column end --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;flex-grow: 1&amp;quot;&amp;gt; &amp;lt;!-- right column start --&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Accessories-text-editor.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Scripting&amp;lt;/h3&amp;gt;&lt;br /&gt;
* [[Scripting Introduction|Introduction to Scripting]]&lt;br /&gt;
* [[Introduction to Scripting the GUI]]&lt;br /&gt;
* [[Debugging|Debugging Tutorial]] - How to find errors in your scripts&lt;br /&gt;
* [[Resources|Introduction to Resources]]&lt;br /&gt;
** [[Resource Web Access]] - How you can write websites with resources&lt;br /&gt;
** [[CEF_Tutorial|CEF Tutorial]] - How you can use the in-game web browser in your resources&lt;br /&gt;
** [[:Category:Resource|Resource Catalogue]]&lt;br /&gt;
** [[Meta.xml]] - Behind every resource is a meta file that defines it&lt;br /&gt;
** [[ACL]] - Access Control List, this is vital for complex scripts to work&lt;br /&gt;
* [[Writing_Gamemodes|Writing Gamemodes]]&lt;br /&gt;
* [[Script security]] - How to write safe scripts and not be afraid of cheaters&lt;br /&gt;
Forum Links&lt;br /&gt;
* [https://forum.multitheftauto.com/forum/71-scripting/ Scripting Sub-Forum], [https://forum.multitheftauto.com/forum/123-tutorials/ Scripting Tutorials Sub-Forum]&lt;br /&gt;
* [https://forum.multitheftauto.com/topic/24702-mtasa-wiki-offline-copies-online-mirrors/ Offline Wiki Copies]&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:start-here.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;General Lua Help&amp;lt;/h3&amp;gt;&lt;br /&gt;
Pages designed to aid your understanding of Lua&lt;br /&gt;
*[http://www.lua.org/pil/index.html &amp;quot;Programming in Lua&amp;quot; Manual]&lt;br /&gt;
**[http://www.lua.org/manual/5.1/#index Internal Lua functions reference]&lt;br /&gt;
*[http://lua-users.org/wiki/TutorialDirectory Lua Wiki]&lt;br /&gt;
*[http://nixstaller.sourceforge.net/manual/0.5.1/nixstaller_10.html A general guide to Lua from Nixstaller]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:Preferences-system.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Reference&amp;lt;/h3&amp;gt;&lt;br /&gt;
* [[Client Scripting Functions|Client-side Functions]]&lt;br /&gt;
* [[Client Scripting Events|Client-side Events]]&lt;br /&gt;
* [[Server Scripting Functions|Server-side Functions]]&lt;br /&gt;
* [[Server Scripting Events|Server-side Events]]&lt;br /&gt;
* [[Useful Functions]]&lt;br /&gt;
&amp;lt;!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --&amp;gt;&lt;br /&gt;
* [[MTA Classes]] - Detailed descriptions of all MTA custom types&lt;br /&gt;
** [[Element|MTA Elements]] / [[Element tree]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; margin:10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width: 32px;&amp;quot;&amp;gt;[[File:System-file-manager.png|link=]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;[[Id|ID Lists]]&amp;lt;/h3&amp;gt;&lt;br /&gt;
*[[Animations|Animations]]&lt;br /&gt;
*[[Character Skins]]&lt;br /&gt;
*[[CJ_Clothes|Clothing styles]]&lt;br /&gt;
*[[Garage|Garage IDs]]&lt;br /&gt;
*[[Interior IDs]]&lt;br /&gt;
*[[Material IDs]]&lt;br /&gt;
*[[Ped voices|Ped Voices]]&lt;br /&gt;
*[[Projectiles]]&lt;br /&gt;
*[[Radar Blips]]&lt;br /&gt;
*[[Sounds]]&lt;br /&gt;
*[[Vehicle IDs]]&lt;br /&gt;
*[[Vehicle Colors]]&lt;br /&gt;
*[[Vehicle Upgrades]]&lt;br /&gt;
*[[Vehicle variants|Vehicle Variants]]&lt;br /&gt;
*[[Vehicle component manipulation]]&lt;br /&gt;
*[[Weapons|Weapons]]&lt;br /&gt;
*[[Weather]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt; &amp;lt;!-- right column end --&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt; &amp;lt;!-- flex container close --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Footer --&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;display: flex; flex-wrap: wrap; align-items: center; padding-left: 15px; padding-right: 15px;&amp;quot; class=&amp;quot;plainlinks&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;margin-right: 1em;&amp;quot;&amp;gt;[[File:MTALogo_8ball.png||85px|link=Archive]]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;display: flex; flex-wrap: wrap;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-right: 5em;&amp;quot;&amp;gt;&lt;br /&gt;
'''About [[Multi Theft Auto]]''' &amp;lt;br&amp;gt;&lt;br /&gt;
[[Archive]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[Press Coverage]] &amp;lt;br&amp;gt;&lt;br /&gt;
[https://github.com/multitheftauto/mtasa-blue/graphs/contributors Developers]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-right: 5em;&amp;quot;&amp;gt;&lt;br /&gt;
'''Multi Theft Auto 0.5''' &amp;lt;br&amp;gt;&lt;br /&gt;
[[Archive#Multi_Theft_Auto_0.5|Download]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[MTA 0.5r2 Known Issues|Known Issues]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-right: 5em;&amp;quot;&amp;gt;&lt;br /&gt;
'''Wiki Stats''' &amp;lt;br&amp;gt;&lt;br /&gt;
{{NUMBEROFARTICLES}} Articles &amp;lt;br&amp;gt;&lt;br /&gt;
{{NUMBEROFPAGES}} Pages &amp;lt;br&amp;gt;&lt;br /&gt;
{{NUMBEROFUSERS}} Registered Users &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
[[File:Osi symbol.png|75px|link=https://opensource.org/|left]]&lt;br /&gt;
'''Multi Theft Auto''' is '''Open Source'''. &lt;br /&gt;
&amp;lt;br/&amp;gt;This means anyone can contribute to making Multi Theft Auto even better!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
{{Languages list|en}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TestCustomVars&amp;diff=80689</id>
		<title>TestCustomVars</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TestCustomVars&amp;diff=80689"/>
		<updated>2024-10-13T03:43:53Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Created page with &amp;quot;Current skin: {{CURRENT_SKIN}}  {{#ifeq: {{CURRENT_SKIN}} | darkvector  | Congrats, you're using the best skin! }}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Current skin: {{CURRENT_SKIN}}&lt;br /&gt;
&lt;br /&gt;
{{#ifeq: {{CURRENT_SKIN}} | darkvector&lt;br /&gt;
 | Congrats, you're using the best skin!&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:LopSided&amp;diff=80688</id>
		<title>User:LopSided</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:LopSided&amp;diff=80688"/>
		<updated>2024-10-13T03:40:06Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:LopSided&amp;diff=80687</id>
		<title>User:LopSided</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:LopSided&amp;diff=80687"/>
		<updated>2024-10-13T03:35:52Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Current skin: {{CURRENT_SKIN}}&lt;br /&gt;
&lt;br /&gt;
{{#ifeq: {{CURRENT_SKIN}} | darkvector&lt;br /&gt;
 | Congrats, you're using the best skin!&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:LopSided&amp;diff=80686</id>
		<title>User:LopSided</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:LopSided&amp;diff=80686"/>
		<updated>2024-10-13T03:17:59Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MTA_CURRENT_SKIN}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:LopSided&amp;diff=80682</id>
		<title>User:LopSided</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:LopSided&amp;diff=80682"/>
		<updated>2024-10-12T21:47:15Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Created page with &amp;quot;{{CurrentSkin}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{CurrentSkin}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:CurrentSkin&amp;diff=80681</id>
		<title>Template:CurrentSkin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:CurrentSkin&amp;diff=80681"/>
		<updated>2024-10-12T21:44:48Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Created page with &amp;quot;&amp;lt;div id='current-skin-value&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div id='current-skin-value&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:7dfJyoO6_2x.jpg&amp;diff=78983</id>
		<title>File:7dfJyoO6 2x.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:7dfJyoO6_2x.jpg&amp;diff=78983"/>
		<updated>2024-04-03T20:53:59Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Server_client_function&amp;diff=78890</id>
		<title>Template:Server client function</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Server_client_function&amp;diff=78890"/>
		<updated>2024-03-13T18:47:08Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Undo revision 78887 by RubyCommunity (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Template:Shared function]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=78793</id>
		<title>GetPlayerSerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=78793"/>
		<updated>2024-02-02T16:15:37Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Shared function}}&lt;br /&gt;
This function returns the [[serial]] for a specified [[player]].&lt;br /&gt;
{{Note|It's possible for a player to fake the value returned from getPlayerSerial when used on the clientside. For this reason you should only trust the value returned by this function when used serverside. }}&lt;br /&gt;
{{Important Note|You should '''use this function''' in conjunction '''with account system''' (e.g: '''login &amp;amp; password''') - especially for critical things, because '''serials could be invalid''' (as in, '''non-unique''' or '''faked'''). See: [https://wiki.multitheftauto.com/wiki/Script_security Script security].}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerSerial ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[player]]:getSerial|serial|}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' A [[player]] object referencing the specified player.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the serial as a ''string'' if it was found, ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&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;
string getPlayerSerial ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[localPlayer]]:getSerial||}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the serial as a ''string'' if it was found, ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Serverside examples==&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 example creates a command with which player can check their own serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkMySerial( thePlayer, command )&lt;br /&gt;
    local theSerial = getPlayerSerial( thePlayer )&lt;br /&gt;
    if theSerial then&lt;br /&gt;
        outputChatBox( &amp;quot;Your serial is: &amp;quot; .. theSerial, thePlayer )&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox( &amp;quot;Sorry, you have no serial. =(&amp;quot;, thePlayer )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;myserial&amp;quot;, checkMySerial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example adds a command to ban a player's serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local function banSerialCommand ( source, command, playerName, reason )&lt;br /&gt;
   if playerName then&lt;br /&gt;
      local player, serial = getPlayerFromName ( playerName ), getPlayerSerial ( playerName )&lt;br /&gt;
      if player then&lt;br /&gt;
         addBan ( serial, source, reason )&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;banplayerserial&amp;quot;, banSerialCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example only allows clients with a certain serial to log in into an account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local allowedAccountSerials = &lt;br /&gt;
{&lt;br /&gt;
    -- List of allowed serials to log in into an account. Format:&lt;br /&gt;
    -- [ Account name ] = { Allowed serial array }&lt;br /&gt;
    [ &amp;quot;3ash8&amp;quot; ] = { &amp;quot;9C9F3B55D9D7BB7135FF274D3BF444E4&amp;quot; },&lt;br /&gt;
    [ &amp;quot;test5&amp;quot; ] = { &amp;quot;1D6F76CF8D7193792D13789849498452&amp;quot; },&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, root,&lt;br /&gt;
    function(_, account)&lt;br /&gt;
        -- Get the player serial and the allowed serial list for that account&lt;br /&gt;
        -- (If no serial is allowed for the account, do not allow the player to log in as a safety measure)&lt;br /&gt;
        local playerSerial, allowedSerials = getPlayerSerial(source), allowedAccountSerials[getAccountName(account)] or {}&lt;br /&gt;
        -- Check whether the client has an allowed serial or not&lt;br /&gt;
        for i = 1, #allowedSerials do&lt;br /&gt;
            if allowedSerials[i] == playerSerial then&lt;br /&gt;
                -- The serial is allowed. Proceed with the normal log in proccess&lt;br /&gt;
                return&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        -- If we reach this point the serial is not allowed. Do not let the player log in&lt;br /&gt;
        cancelEvent(true, &amp;quot;Client serial not allowed to log in into the account&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:getPlayerSerial]]&lt;br /&gt;
[[en:GetPlayerSerial]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=78792</id>
		<title>GetPlayerSerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=78792"/>
		<updated>2024-02-02T15:58:39Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Shared function}}&lt;br /&gt;
This function returns the [[serial]] for a specified [[player]].&lt;br /&gt;
{{Important Note|You should '''use this function''' in conjunction '''with account system''' (e.g: '''login &amp;amp; password''') - especially for critical things, because '''serials could be invalid''' (as in, '''non-unique''' or '''faked'''). See: [https://wiki.multitheftauto.com/wiki/Script_security Script security].}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerSerial ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[player]]:getSerial|serial|}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' A [[player]] object referencing the specified player.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the serial as a ''string'' if it was found, ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&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;
string getPlayerSerial ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[localPlayer]]:getSerial||}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the serial as a ''string'' if it was found, ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Serverside examples==&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 example creates a command with which player can check their own serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkMySerial( thePlayer, command )&lt;br /&gt;
    local theSerial = getPlayerSerial( thePlayer )&lt;br /&gt;
    if theSerial then&lt;br /&gt;
        outputChatBox( &amp;quot;Your serial is: &amp;quot; .. theSerial, thePlayer )&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox( &amp;quot;Sorry, you have no serial. =(&amp;quot;, thePlayer )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;myserial&amp;quot;, checkMySerial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example adds a command to ban a player's serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local function banSerialCommand ( source, command, playerName, reason )&lt;br /&gt;
   if playerName then&lt;br /&gt;
      local player, serial = getPlayerFromName ( playerName ), getPlayerSerial ( playerName )&lt;br /&gt;
      if player then&lt;br /&gt;
         addBan ( serial, source, reason )&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;banplayerserial&amp;quot;, banSerialCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example only allows clients with a certain serial to log in into an account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local allowedAccountSerials = &lt;br /&gt;
{&lt;br /&gt;
    -- List of allowed serials to log in into an account. Format:&lt;br /&gt;
    -- [ Account name ] = { Allowed serial array }&lt;br /&gt;
    [ &amp;quot;3ash8&amp;quot; ] = { &amp;quot;9C9F3B55D9D7BB7135FF274D3BF444E4&amp;quot; },&lt;br /&gt;
    [ &amp;quot;test5&amp;quot; ] = { &amp;quot;1D6F76CF8D7193792D13789849498452&amp;quot; },&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, root,&lt;br /&gt;
    function(_, account)&lt;br /&gt;
        -- Get the player serial and the allowed serial list for that account&lt;br /&gt;
        -- (If no serial is allowed for the account, do not allow the player to log in as a safety measure)&lt;br /&gt;
        local playerSerial, allowedSerials = getPlayerSerial(source), allowedAccountSerials[getAccountName(account)] or {}&lt;br /&gt;
        -- Check whether the client has an allowed serial or not&lt;br /&gt;
        for i = 1, #allowedSerials do&lt;br /&gt;
            if allowedSerials[i] == playerSerial then&lt;br /&gt;
                -- The serial is allowed. Proceed with the normal log in proccess&lt;br /&gt;
                return&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        -- If we reach this point the serial is not allowed. Do not let the player log in&lt;br /&gt;
        cancelEvent(true, &amp;quot;Client serial not allowed to log in into the account&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:getPlayerSerial]]&lt;br /&gt;
[[en:GetPlayerSerial]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=78791</id>
		<title>GetPlayerSerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=78791"/>
		<updated>2024-02-02T15:57:06Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Update clientside usage info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Shared function}}&lt;br /&gt;
This function returns the [[serial]] for a specified [[player]].&lt;br /&gt;
{{Important Note|You should '''use this function''' in conjunction '''with account system''' (e.g: '''login &amp;amp; password''') - especially for critical things, because '''serials could be invalid''' (as in, '''non-unique''' or '''faked'''). See: [https://wiki.multitheftauto.com/wiki/Script_security Script security].}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerSerial ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[player]]:getSerial|serial|}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' A [[player]] object referencing the specified player.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the serial as a ''string'' if it was found, ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&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;
string getPlayerSerial ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[localPlayer]]:getSerial|serial|}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the serial as a ''string'' if it was found, ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Serverside examples==&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 example creates a command with which player can check their own serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkMySerial( thePlayer, command )&lt;br /&gt;
    local theSerial = getPlayerSerial( thePlayer )&lt;br /&gt;
    if theSerial then&lt;br /&gt;
        outputChatBox( &amp;quot;Your serial is: &amp;quot; .. theSerial, thePlayer )&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox( &amp;quot;Sorry, you have no serial. =(&amp;quot;, thePlayer )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;myserial&amp;quot;, checkMySerial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example adds a command to ban a player's serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local function banSerialCommand ( source, command, playerName, reason )&lt;br /&gt;
   if playerName then&lt;br /&gt;
      local player, serial = getPlayerFromName ( playerName ), getPlayerSerial ( playerName )&lt;br /&gt;
      if player then&lt;br /&gt;
         addBan ( serial, source, reason )&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;banplayerserial&amp;quot;, banSerialCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example only allows clients with a certain serial to log in into an account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local allowedAccountSerials = &lt;br /&gt;
{&lt;br /&gt;
    -- List of allowed serials to log in into an account. Format:&lt;br /&gt;
    -- [ Account name ] = { Allowed serial array }&lt;br /&gt;
    [ &amp;quot;3ash8&amp;quot; ] = { &amp;quot;9C9F3B55D9D7BB7135FF274D3BF444E4&amp;quot; },&lt;br /&gt;
    [ &amp;quot;test5&amp;quot; ] = { &amp;quot;1D6F76CF8D7193792D13789849498452&amp;quot; },&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, root,&lt;br /&gt;
    function(_, account)&lt;br /&gt;
        -- Get the player serial and the allowed serial list for that account&lt;br /&gt;
        -- (If no serial is allowed for the account, do not allow the player to log in as a safety measure)&lt;br /&gt;
        local playerSerial, allowedSerials = getPlayerSerial(source), allowedAccountSerials[getAccountName(account)] or {}&lt;br /&gt;
        -- Check whether the client has an allowed serial or not&lt;br /&gt;
        for i = 1, #allowedSerials do&lt;br /&gt;
            if allowedSerials[i] == playerSerial then&lt;br /&gt;
                -- The serial is allowed. Proceed with the normal log in proccess&lt;br /&gt;
                return&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        -- If we reach this point the serial is not allowed. Do not let the player log in&lt;br /&gt;
        cancelEvent(true, &amp;quot;Client serial not allowed to log in into the account&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:getPlayerSerial]]&lt;br /&gt;
[[en:GetPlayerSerial]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Player_events&amp;diff=78638</id>
		<title>Template:Player events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Player_events&amp;diff=78638"/>
		<updated>2023-11-28T19:21:08Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Update version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerACInfo]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerBan]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerChangeNick]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerChat]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerClick]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerCommand]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerConnect]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerContact]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerDamage]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22293|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerDetonateSatchels]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerJoin]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerLogin]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerLogout]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerMarkerHit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerMarkerLeave]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerModInfo]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerMute]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerNetworkStatus]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerPickupHit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{New items|3.0156|1.5.5|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerPickupLeave]]&amp;lt;/li&amp;gt;&lt;br /&gt;
|11783}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerPickupUse]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerPrivateMessage]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22293|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerProjectileCreation]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerQuit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerScreenShot]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerSpawn]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerStealthKill]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerTarget]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22313|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerTriggerEventThreshold]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerUnmute]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerVehicleEnter]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerVehicleExit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerVoiceStart]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerVoiceStop]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerWasted]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerWeaponFire]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerWeaponSwitch]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Events templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTriggerEventThreshold&amp;diff=78637</id>
		<title>OnPlayerTriggerEventThreshold</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTriggerEventThreshold&amp;diff=78637"/>
		<updated>2023-11-28T19:20:38Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Update version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22313|This event is triggered when a player exceeds the maximum threshold for events via [[triggerServerEvent]].}}&lt;br /&gt;
&lt;br /&gt;
During each interval (''player_triggered_event_interval''), all usage of [[triggerServerEvent]] will be counted for each player. This includes registered events, non-registered events and non-remote events.&lt;br /&gt;
&lt;br /&gt;
If the count exceeds ''max_player_triggered_events_per_interval'', this event will be fired. The count is reset each interval.&lt;br /&gt;
&lt;br /&gt;
You can set these options via [[setServerConfigSetting]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who exceeded the threshold.&lt;br /&gt;
&lt;br /&gt;
===Canceling===&lt;br /&gt;
Canceling this event has no effect.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function processPlayerTriggerEventThreshold()&lt;br /&gt;
    kickPlayer(source, &amp;quot;Event spam&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTriggerEventThreshold&amp;quot;, root, processPlayerTriggerEventThreshold)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTriggerEventThreshold&amp;diff=78635</id>
		<title>OnPlayerTriggerEventThreshold</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTriggerEventThreshold&amp;diff=78635"/>
		<updated>2023-11-27T14:01:02Z</updated>

		<summary type="html">&lt;p&gt;LopSided: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22311|This event is triggered when a player exceeds the maximum threshold for events via [[triggerServerEvent]].}}&lt;br /&gt;
&lt;br /&gt;
During each interval (''player_triggered_event_interval''), all usage of [[triggerServerEvent]] will be counted for each player. This includes registered events, non-registered events and non-remote events.&lt;br /&gt;
&lt;br /&gt;
If the count exceeds ''max_player_triggered_events_per_interval'', this event will be fired. The count is reset each interval.&lt;br /&gt;
&lt;br /&gt;
You can set these options via [[setServerConfigSetting]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who exceeded the threshold.&lt;br /&gt;
&lt;br /&gt;
===Canceling===&lt;br /&gt;
Canceling this event has no effect.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function processPlayerTriggerEventThreshold()&lt;br /&gt;
    kickPlayer(source, &amp;quot;Event spam&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTriggerEventThreshold&amp;quot;, root, processPlayerTriggerEventThreshold)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTriggerEventThreshold&amp;diff=78634</id>
		<title>OnPlayerTriggerEventThreshold</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTriggerEventThreshold&amp;diff=78634"/>
		<updated>2023-11-27T13:55:48Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22311|This event is triggered when a player exceeds the maximum threshold for events via [[triggerServerEvent]].}}&lt;br /&gt;
&lt;br /&gt;
During each interval (''player_triggered_event_interval''), all usage of [[triggerServerEvent]] will be counted for each player. This includes registered events, non-registered events and non-remote events.&lt;br /&gt;
&lt;br /&gt;
If the count exceeds ''max_player_triggered_events_per_interval'', this event will be fired. The count is reset each interval.&lt;br /&gt;
&lt;br /&gt;
You can set these options via [[setServerConfigSetting]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who exceeded the threshold.&lt;br /&gt;
&lt;br /&gt;
===Canceling===&lt;br /&gt;
Canceling this event has no effect.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function start()&lt;br /&gt;
    setServerConfigSetting(&amp;quot;player_triggered_event_interval&amp;quot;, &amp;quot;500&amp;quot;) -- set event usage interval to 500ms (default is 1000)&lt;br /&gt;
    setServerConfigSetting(&amp;quot;max_player_triggered_events_per_interval&amp;quot;, &amp;quot;50&amp;quot;) -- set max events per interval to 50 (default is 100)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, start)&lt;br /&gt;
&lt;br /&gt;
function processPlayerTriggerEventThreshold()&lt;br /&gt;
    kickPlayer(source, &amp;quot;Event spam&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTriggerEventThreshold&amp;quot;, root, processPlayerTriggerEventThreshold)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTriggerEventThreshold&amp;diff=78633</id>
		<title>OnPlayerTriggerEventThreshold</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTriggerEventThreshold&amp;diff=78633"/>
		<updated>2023-11-27T13:51:56Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Created page with &amp;quot;__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22311|This event is triggered when a player exceeds the maximum threshold for events via triggerServerEvent.}} ==Parameters== None  ==Source== The source of this event is the player who exceeded the threshold.  ===Canceling=== Canceling this event has no effect.  ==Example== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function start()     setServerConfigSetting(&amp;quot;player_triggered_event_inte...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22311|This event is triggered when a player exceeds the maximum threshold for events via [[triggerServerEvent]].}}&lt;br /&gt;
==Parameters==&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who exceeded the threshold.&lt;br /&gt;
&lt;br /&gt;
===Canceling===&lt;br /&gt;
Canceling this event has no effect.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function start()&lt;br /&gt;
    setServerConfigSetting(&amp;quot;player_triggered_event_interval&amp;quot;, &amp;quot;500&amp;quot;) -- set event usage interval to 500ms (default is 1000)&lt;br /&gt;
    setServerConfigSetting(&amp;quot;max_player_triggered_events_per_interval&amp;quot;, &amp;quot;50&amp;quot;) -- set max events per interval to 50 (default is 100)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, start)&lt;br /&gt;
&lt;br /&gt;
function processPlayerTriggerEventThreshold()&lt;br /&gt;
    kickPlayer(source, &amp;quot;Event spam&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTriggerEventThreshold&amp;quot;, root, processPlayerTriggerEventThreshold)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Player_events&amp;diff=78632</id>
		<title>Template:Player events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Player_events&amp;diff=78632"/>
		<updated>2023-11-27T13:45:37Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerACInfo]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerBan]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerChangeNick]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerChat]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerClick]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerCommand]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerConnect]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerContact]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerDamage]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22293|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerDetonateSatchels]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerJoin]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerLogin]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerLogout]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerMarkerHit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerMarkerLeave]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerModInfo]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerMute]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerNetworkStatus]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerPickupHit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{New items|3.0156|1.5.5|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerPickupLeave]]&amp;lt;/li&amp;gt;&lt;br /&gt;
|11783}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerPickupUse]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerPrivateMessage]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22293|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerProjectileCreation]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerQuit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerScreenShot]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerSpawn]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerStealthKill]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerTarget]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22311|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerTriggerEventThreshold]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerUnmute]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerVehicleEnter]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerVehicleExit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerVoiceStart]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerVoiceStop]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerWasted]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerWeaponFire]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPlayerWeaponSwitch]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Events templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetServerConfigSetting&amp;diff=78631</id>
		<title>SetServerConfigSetting</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetServerConfigSetting&amp;diff=78631"/>
		<updated>2023-11-27T13:44:14Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function sets server settings which are stored in the [[Server mtaserver.conf|mtaserver.conf]] file.&lt;br /&gt;
{{Note|This function is protected by default and must be explicitly allowed in the servers acl before it can be used.}}&lt;br /&gt;
{{Warning|&amp;quot;bandwidth_reduction&amp;quot; set to 'maximum' will cause player movement synchronization issues, on locations built outside 3000m radius from world center.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setServerConfigSetting ( string name, string value [, bool bSave = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''name :''' The name of the setting. Only certain settings from [[Server mtaserver.conf|mtaserver.conf]] can be changed with this function. These are:&lt;br /&gt;
** minclientversion&lt;br /&gt;
** recommendedclientversion&lt;br /&gt;
** password&lt;br /&gt;
** fpslimit - (0-100)&lt;br /&gt;
** networkencryption - 0 for off, 1 for on&lt;br /&gt;
** bandwidth_reduction - &amp;quot;none&amp;quot;, &amp;quot;medium&amp;quot;, &amp;quot;maximum&amp;quot; Set to maximum for less bandwidth usage (medium is recommended for race servers)&lt;br /&gt;
** player_sync_interval - See [[Sync_interval_settings]] for all *_sync_interval settings&lt;br /&gt;
** lightweight_sync_interval&lt;br /&gt;
** camera_sync_interval&lt;br /&gt;
** ped_sync_interval&lt;br /&gt;
** unoccupied_vehicle_sync_interval&lt;br /&gt;
** keysync_mouse_sync_interval&lt;br /&gt;
** keysync_analog_sync_interval&lt;br /&gt;
** bullet_sync&lt;br /&gt;
** player_triggered_event_interval&lt;br /&gt;
** max_player_triggered_events_per_interval&lt;br /&gt;
*'''value:''' The value of the setting&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
*'''bSave:''' Set to ''true'' to make the setting permanent, or ''false'' for use only until the next server restart.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the setting was successfully set, or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example enables network encryption&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
setServerConfigSetting( &amp;quot;networkencryption&amp;quot;, &amp;quot;1&amp;quot;, true )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=78245</id>
		<title>DxDrawModel3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=78245"/>
		<updated>2023-10-17T03:08:52Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
{{Important Note|You can not use this function to draw vehicles and ped}}&lt;br /&gt;
{{Important Note|This function doesn't obey any streaming limits, you can draw as many models as you want}}&lt;br /&gt;
{{Important Note|You can not render model to render target.}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22271|&lt;br /&gt;
This function draws a 3D model - rendered for '''one''' frame. Drawn models are indistinguishable from this one created by [[createObject]] function. This should be used in conjunction with [[onClientRender]] in order to display continuously. &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Disabled|Feature temporarily removed in 22272 due to feedback||3212}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxDrawModel( int modelId, float positionX, float positionY, float positionZ, float rotationX, float rotationY, float rotationZ [, float scaleX, float scaleY, float scaleZ ])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DxDrawModel3D_at_day.png|thumb|Model during day]]&lt;br /&gt;
[[Image:DxDrawModel3D_at_night.png|thumb|Model during night]]&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''modelId:''' Model you want to draw, must be regular object, you can not draw vehicles and peds&lt;br /&gt;
* '''positionX/Y/Z:''' Position of model&lt;br /&gt;
* '''rotationX/Y/Z:''' Rotation of model&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
* '''scaleX/Y/Z:''' Scale of model, by default {1,1,1}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the operation was successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Simple example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, function()&lt;br /&gt;
    dxDrawModel3D(3276, -719.64984, 951.26685, 12.13281, 0, 0,90)&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;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Disabled&amp;diff=78244</id>
		<title>Template:Disabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Disabled&amp;diff=78244"/>
		<updated>2023-10-17T03:08:37Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
   bordercolorhex = FF0000 |&lt;br /&gt;
   bgcolorhex = E5E5E5 |&lt;br /&gt;
   image = File:Dialog-warning.png |&lt;br /&gt;
   title = {{#ifeq: {{padleft:|2|{{lc:{{PAGENAME}}}}}}|on|Event|Function}} has been disabled. |&lt;br /&gt;
   subtext = {{ #if: {{{1|}}} | '''Reason/Note:''' {{{1|}}} }} {{ #if: {{{2|}}} | - '''Bugtracker Issue:''' [http://bugs.mtasa.com/view.php?id={{{2}}} #{{{2}}}] }} {{ #if: {{{3|}}} | - '''Bugtracker Issue:''' [https://github.com/multitheftauto/mtasa-blue/issues/{{{3}}} #{{{3}}}] }} |&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{ #ifeq: {{NAMESPACE}}|Help||[[Category:Disabled Functions and Events]]}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Utility templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Disabled&amp;diff=78243</id>
		<title>Template:Disabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Disabled&amp;diff=78243"/>
		<updated>2023-10-17T03:06:55Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
   bordercolorhex = FF0000 |&lt;br /&gt;
   bgcolorhex = E5E5E5 |&lt;br /&gt;
   image = File:Dialog-warning.png |&lt;br /&gt;
   title = {{#ifeq: {{padleft:|2|{{lc:{{PAGENAME}}}}}}|on|Event|Function}} has been disabled. |&lt;br /&gt;
   subtext = {{ #if: {{{1|}}} | '''Reason/Note:''' {{{1|}}} }} {{ #if: {{{2|}}} | - '''Bugtracker Issue:''' [http://bugs.mtasa.com/view.php?id={{{2}}} #{{{2}}}] }} {{ #if: {{{3|}}} | - '''Bugtracker Issue:''' [https://github.com/multitheftauto/mtasa-blue/issues/{{{2}}} #{{{2}}}] }} |&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{ #ifeq: {{NAMESPACE}}|Help||[[Category:Disabled Functions and Events]]}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Utility templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=78242</id>
		<title>DxDrawModel3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=78242"/>
		<updated>2023-10-17T03:04:32Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
{{Important Note|You can not use this function to draw vehicles and ped}}&lt;br /&gt;
{{Important Note|This function doesn't obey any streaming limits, you can draw as many models as you want}}&lt;br /&gt;
{{Important Note|You can not render model to render target.}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22271|&lt;br /&gt;
This function draws a 3D model - rendered for '''one''' frame. Drawn models are indistinguishable from this one created by [[createObject]] function. This should be used in conjunction with [[onClientRender]] in order to display continuously. &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Disabled|Feature temporarily removed in 22272 due to feedback|https://github.com/multitheftauto/mtasa-blue/issues/3212}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxDrawModel( int modelId, float positionX, float positionY, float positionZ, float rotationX, float rotationY, float rotationZ [, float scaleX, float scaleY, float scaleZ ])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DxDrawModel3D_at_day.png|thumb|Model during day]]&lt;br /&gt;
[[Image:DxDrawModel3D_at_night.png|thumb|Model during night]]&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''modelId:''' Model you want to draw, must be regular object, you can not draw vehicles and peds&lt;br /&gt;
* '''positionX/Y/Z:''' Position of model&lt;br /&gt;
* '''rotationX/Y/Z:''' Rotation of model&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
* '''scaleX/Y/Z:''' Scale of model, by default {1,1,1}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the operation was successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Simple example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, function()&lt;br /&gt;
    dxDrawModel3D(3276, -719.64984, 951.26685, 12.13281, 0, 0,90)&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;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Drawing_functions&amp;diff=78236</id>
		<title>Template:Drawing functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Drawing_functions&amp;diff=78236"/>
		<updated>2023-10-14T06:22:35Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxConvertPixels]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxCreateFont]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxCreateRenderTarget]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxCreateScreenSource]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxCreateShader]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxCreateTexture]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{New items|3.0156|1.5.5|&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawCircle]]&amp;lt;/li&amp;gt;&lt;br /&gt;
|13977}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawImage]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawImageSection]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawLine]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawLine3D]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawMaterialLine3D]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawMaterialPrimitive]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawMaterialPrimitive3D]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawMaterialSectionLine3D]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22271|&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawModel3D]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawPrimitive]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawPrimitive3D]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawRectangle]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawText]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{New items|3.0158|1.5.7|&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxDrawWiredSphere]]&amp;lt;/li&amp;gt;&lt;br /&gt;
|20328}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetBlendMode]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetFontHeight]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetMaterialSize]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetPixelColor]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetPixelsSize]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetPixelsFormat]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetStatus]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{New items|3.0158|1.5.7|&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetTextSize]]&amp;lt;/li&amp;gt;&lt;br /&gt;
|20447}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetTextWidth]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxGetTexturePixels]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxIsAspectRatioAdjustmentEnabled]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetAspectRatioAdjustmentEnabled]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetBlendMode]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetPixelColor]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetRenderTarget]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetShaderValue]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetShaderTessellation]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetShaderTransform]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetTestMode]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetTextureEdge]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxSetTexturePixels]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[dxUpdateScreenSource]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=78235</id>
		<title>DxDrawModel3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawModel3D&amp;diff=78235"/>
		<updated>2023-10-14T06:21:55Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
{{Important Note|You can not use this function to draw vehicles and ped}}&lt;br /&gt;
{{Important Note|This function doesn't obey any streaming limits, you can draw as many models as you want}}&lt;br /&gt;
{{Important Note|You can not render model to render target.}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22271|&lt;br /&gt;
This function draws a 3D model - rendered for '''one''' frame. Drawn models are indistinguishable from this one created by [[createObject]] function. This should be used in conjunction with [[onClientRender]] in order to display continuously. &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxDrawModel( int modelId, float positionX, float positionY, float positionZ, float rotationX, float rotationY, float rotationZ [, float scaleX, float scaleY, float scaleZ ])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DxDrawModel3D_at_day.png|thumb|Model during day]]&lt;br /&gt;
[[Image:DxDrawModel3D_at_night.png|thumb|Model during night]]&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''modelId:''' Model you want to draw, must be regular object, you can not draw vehicles and peds&lt;br /&gt;
* '''positionX/Y/Z:''' Position of model&lt;br /&gt;
* '''rotationX/Y/Z:''' Rotation of model&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
* '''scaleX/Y/Z:''' Scale of model, by default {1,1,1}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the operation was successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Simple example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, function()&lt;br /&gt;
    dxDrawModel3d(3276, -719.64984, 951.26685, 12.13281, 0, 0,90)&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;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresenceStartTime&amp;diff=78215</id>
		<title>SetDiscordRichPresenceStartTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresenceStartTime&amp;diff=78215"/>
		<updated>2023-10-12T16:42:47Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Important Note|To use this function, you must set up your own application [[setDiscordApplicationID]]}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22270|&lt;br /&gt;
This function sets the elapsed time of Discord Rich Presence.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDiscordRichPresenceStartTime(int seconds)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[DiscordRPC]]:setStartTime}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''seconds''': an integer representing the number of seconds that has elapsed. If 0, the timer will not be displayed.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if function succeeds, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to change the elapsed timer of the Discord Rich Presence application.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local app_key = &amp;quot;YOUR_APPLICATION_KEY&amp;quot;&lt;br /&gt;
if setDiscordApplicationID(app_key) then &lt;br /&gt;
    setDiscordRichPresenceState(&amp;quot;In-game&amp;quot;)&lt;br /&gt;
    setDiscordRichPresenceStartTime(1)&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_Discord_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[de:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[hu:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[pl:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ro:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ru:SetDiscordRichPresenceDetails]]&lt;br /&gt;
[[PT-BR:SetDiscordRichPresenceDetails]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresenceEndTime&amp;diff=78214</id>
		<title>SetDiscordRichPresenceEndTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresenceEndTime&amp;diff=78214"/>
		<updated>2023-10-12T16:42:37Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Created page with &amp;quot;__NOTOC__  {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| This function sets the remaining time of Discord Rich Presence. }}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setDiscordRichPresenceEndTime(int seconds) &amp;lt;/syntaxhighlight&amp;gt;  {{OOP||DiscordRPC:setEndTime}}  ===Required arguments=== *'''seconds''': an integer representing the number of seconds...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Important Note|To use this function, you must set up your own application [[setDiscordApplicationID]]}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22270|&lt;br /&gt;
This function sets the remaining time of Discord Rich Presence.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDiscordRichPresenceEndTime(int seconds)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[DiscordRPC]]:setEndTime}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''seconds''': an integer representing the number of seconds that are remaining. If 0, or lower than the start time ([[setDiscordRichPresenceStartTime]]) the timer will not be displayed.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if function succeeds, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to change the remaining timer of the Discord Rich Presence application.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local app_key = &amp;quot;YOUR_APPLICATION_KEY&amp;quot;&lt;br /&gt;
if setDiscordApplicationID(app_key) then &lt;br /&gt;
    setDiscordRichPresenceState(&amp;quot;In-game&amp;quot;)&lt;br /&gt;
    setDiscordRichPresenceStartTime(60)&lt;br /&gt;
    setDiscordRichPresenceEndTime(60)&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_Discord_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[de:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[hu:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[pl:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ro:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ru:SetDiscordRichPresenceDetails]]&lt;br /&gt;
[[PT-BR:SetDiscordRichPresenceDetails]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresencePartySize&amp;diff=78213</id>
		<title>SetDiscordRichPresencePartySize</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresencePartySize&amp;diff=78213"/>
		<updated>2023-10-12T06:39:28Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Important Note|To use this function, you must set up your own application [[setDiscordApplicationID]]}}&lt;br /&gt;
{{Note|For the party size to be displayed, the state must be set [[setDiscordRichPresenceState]]}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22270|&lt;br /&gt;
This function sets the party size of Discord Rich Presence.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDiscordRichPresencePartySize(int size, int max)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[DiscordRPC]]:setPartySize}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''size''': an integer representing the current party size.&lt;br /&gt;
*'''max''': an integer representing the maximum party size.&lt;br /&gt;
&lt;br /&gt;
'''If both values are 0, the party size will not be displayed'''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if function succeeds, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to change the party size of the Discord Rich Presence application.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local app_key = &amp;quot;YOUR_APPLICATION_KEY&amp;quot;&lt;br /&gt;
if setDiscordApplicationID(app_key) then &lt;br /&gt;
    setDiscordRichPresenceState(&amp;quot;In-game&amp;quot;)&lt;br /&gt;
    setDiscordRichPresencePartySize(1, 32)&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_Discord_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[de:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[hu:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[pl:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ro:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ru:SetDiscordRichPresenceDetails]]&lt;br /&gt;
[[PT-BR:SetDiscordRichPresenceDetails]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_Discord_functions&amp;diff=78212</id>
		<title>Template:Client Discord functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_Discord_functions&amp;diff=78212"/>
		<updated>2023-10-12T06:38:53Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0161|1.6.0|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[isDiscordRichPresenceConnected]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[resetDiscordRichPresenceData]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordApplicationID]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceAsset]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceButton]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceDetails]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceSmallAsset]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceState]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|22270}}&lt;br /&gt;
&lt;br /&gt;
{{New items|3.0161|1.6.0|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresencePartySize]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceStartTime]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
|22271}}&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_Discord_functions&amp;diff=78211</id>
		<title>Template:Client Discord functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_Discord_functions&amp;diff=78211"/>
		<updated>2023-10-12T06:38:11Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0161|1.6.0|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[isDiscordRichPresenceConnected]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[resetDiscordRichPresenceData]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordApplicationID]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceAsset]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceButton]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceDetails]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresencePartySize]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceSmallAsset]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceStartTime]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceState]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|22270}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresencePartySize&amp;diff=78210</id>
		<title>SetDiscordRichPresencePartySize</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresencePartySize&amp;diff=78210"/>
		<updated>2023-10-12T06:37:24Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Created page with &amp;quot;__NOTOC__  {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{Note|For the party size to be displayed, the state must be set setDiscordRichPresenceState}} {{New feature/item|3.0161|1.6.0|22270| This function sets the party size of Discord Rich Presence. }}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setDiscordRichPresencePartySize(int size, int max) &amp;lt;/syntaxhighlight&amp;gt;  {{OOP||DiscordRPC...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Important Note|To use this function, you must set up your own application [[setDiscordApplicationID]]}}&lt;br /&gt;
{{Note|For the party size to be displayed, the state must be set [[setDiscordRichPresenceState]]}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22270|&lt;br /&gt;
This function sets the party size of Discord Rich Presence.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDiscordRichPresencePartySize(int size, int max)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[DiscordRPC]]:setPartySize}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''size''': an integer representing the current party size.&lt;br /&gt;
*'''max''': an integer representing the maximum party size.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if function succeeds, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to change the party size of the Discord Rich Presence application.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local app_key = &amp;quot;YOUR_APPLICATION_KEY&amp;quot;&lt;br /&gt;
if setDiscordApplicationID(app_key) then &lt;br /&gt;
    setDiscordRichPresenceState(&amp;quot;In-game&amp;quot;)&lt;br /&gt;
    setDiscordRichPresencePartySize(1, 32)&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_Discord_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[de:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[hu:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[pl:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ro:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ru:SetDiscordRichPresenceDetails]]&lt;br /&gt;
[[PT-BR:SetDiscordRichPresenceDetails]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresenceStartTime&amp;diff=78209</id>
		<title>SetDiscordRichPresenceStartTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresenceStartTime&amp;diff=78209"/>
		<updated>2023-10-12T06:35:12Z</updated>

		<summary type="html">&lt;p&gt;LopSided: Created page with &amp;quot;__NOTOC__  {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| This function sets the elapsed time of Discord Rich Presence. }}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setDiscordRichPresenceStartTime(int seconds) &amp;lt;/syntaxhighlight&amp;gt;  {{OOP||DiscordRPC:setDetails}}  ===Required arguments=== *'''seconds''': an integer representing the number of seconds...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Important Note|To use this function, you must set up your own application [[setDiscordApplicationID]]}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22270|&lt;br /&gt;
This function sets the elapsed time of Discord Rich Presence.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDiscordRichPresenceStartTime(int seconds)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[DiscordRPC]]:setDetails}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''seconds''': an integer representing the number of seconds that has elapsed. If 0, the timer will not be displayed.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if function succeeds, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to change the elapsed timer of the Discord Rich Presence application.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local app_key = &amp;quot;YOUR_APPLICATION_KEY&amp;quot;&lt;br /&gt;
if setDiscordApplicationID(app_key) then &lt;br /&gt;
    setDiscordRichPresenceState(&amp;quot;In-game&amp;quot;)&lt;br /&gt;
    setDiscordRichPresenceStartTime(1)&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_Discord_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[de:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[hu:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[pl:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ro:setDiscordRichPresenceDetails]]&lt;br /&gt;
[[ru:SetDiscordRichPresenceDetails]]&lt;br /&gt;
[[PT-BR:SetDiscordRichPresenceDetails]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_Discord_functions&amp;diff=78206</id>
		<title>Template:Client Discord functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_Discord_functions&amp;diff=78206"/>
		<updated>2023-10-11T22:13:53Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0161|1.6.0|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[isDiscordRichPresenceConnected]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[resetDiscordRichPresenceData]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordApplicationID]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceAsset]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceButton]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceDetails]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceSmallAsset]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[setDiscordRichPresenceState]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
|22270}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresenceState&amp;diff=78205</id>
		<title>SetDiscordRichPresenceState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetDiscordRichPresenceState&amp;diff=78205"/>
		<updated>2023-10-11T22:13:33Z</updated>

		<summary type="html">&lt;p&gt;LopSided: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Important Note|To use this function, you must set up your own application [[setDiscordApplicationID]]}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22270|&lt;br /&gt;
This function sets the status of the Discord Rich Presence application.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDiscordRichPresenceState(string state)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[DiscordRPC]]:setState}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''state''': a string containing the status text&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if function succeeds, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to set the state of the Discord Rich Presence application.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local app_key = &amp;quot;YOUR_APPLICATION_KEY&amp;quot;&lt;br /&gt;
if setDiscordApplicationID(app_key) then &lt;br /&gt;
    setDiscordRichPresenceState(&amp;quot;waiting in lobby&amp;quot;)&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_Discord_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:setDiscordRichPresenceState]]&lt;br /&gt;
[[de:setDiscordRichPresenceState]]&lt;br /&gt;
[[hu:setDiscordRichPresenceState]]&lt;br /&gt;
[[pl:setDiscordRichPresenceState]]&lt;br /&gt;
[[ro:setDiscordRichPresenceState]]&lt;br /&gt;
[[ru:SetDiscordRichPresenceState]]&lt;br /&gt;
[[PT-BR:SetDiscordRichPresenceState]]&lt;/div&gt;</summary>
		<author><name>LopSided</name></author>
	</entry>
</feed>