<?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=Imfelipedev</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=Imfelipedev"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Imfelipedev"/>
	<updated>2026-04-19T23:41:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81811</id>
		<title>OnPlayerTeleport</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81811"/>
		<updated>2025-02-16T20:04:56Z</updated>

		<summary type="html">&lt;p&gt;Imfelipedev: &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|22930|This event is triggered when a player's position changes significantly without direct server intervention, such as the use of [[setElementPosition]].}}&lt;br /&gt;
When the player synchronizes data with the server, the server monitors player positions to detect significant unexpected movements. If a player's position deviates beyond the established threshold without server functions like [[setElementPosition]] being used, this event will be triggered.  &lt;br /&gt;
{{Note|The sensitivity threshold can be adjusted through the '''player_teleport_alert''' setting, which accepts values between 5 and 500 (default: 100).}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float previousX, float previousY, float previousZ, float currentX, float currentY, float currentZ&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''previousX''': A [[float]] representing the player X-coordinate before teleporting.&lt;br /&gt;
*'''previousY''': A [[float]] representing the player Y-coordinate before teleporting.&lt;br /&gt;
*'''previousZ''': A [[float]] representing the player Z-coordinate before teleporting.&lt;br /&gt;
*'''currentX''': A [[float]] representing the player current X-coordinate after teleporting.&lt;br /&gt;
*'''currentY''': A [[float]] representing the player current Y-coordinate after teleporting.&lt;br /&gt;
*'''currentZ''': A [[float]] representing the player current Z-coordinate after teleporting.&lt;br /&gt;
&lt;br /&gt;
==Source==  &lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who triggered the teleport detection.  &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;
This example logs unexpected teleportation events.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTeleport&amp;quot;, root, function()&lt;br /&gt;
    outputServerLog(&amp;quot;Player &amp;quot;..getPlayerName(source)..&amp;quot; teleported unexpectedly. Possible hack detected.&amp;quot;)&lt;br /&gt;
end)&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>Imfelipedev</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81810</id>
		<title>OnPlayerTeleport</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81810"/>
		<updated>2025-02-16T20:00:16Z</updated>

		<summary type="html">&lt;p&gt;Imfelipedev: &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|22930|This event is triggered when a player's position changes significantly without direct server intervention, such as the use of [[setElementPosition]].}}&lt;br /&gt;
When the player synchronizes data with the server, the server monitors player positions to detect significant unexpected movements. If a player's position deviates beyond the established threshold without server functions like [[setElementPosition]] being used, this event will be triggered.  &lt;br /&gt;
{{Note|The sensitivity threshold can be adjusted through the '''player_teleport_alert''' setting, which accepts values between 5 and 500 (default: 100).}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float previousX, float previousY, float previousZ, float currentX, float currentY, float currentZ&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''previousX''': A [[float]] representing the player X-coordinate before teleporting.&lt;br /&gt;
*'''previousY''': A [[float]] representing the player Y-coordinate before teleporting.&lt;br /&gt;
*'''previousZ''': A [[float]] representing the player Z-coordinate before teleporting.&lt;br /&gt;
*'''currentX''': A [[float]] representing the player current X-coordinate after teleporting.&lt;br /&gt;
*'''currentY''': A [[float]] representing the player current Y-coordinate after teleporting.&lt;br /&gt;
*'''currentZ''': A [[float]] representing the player current Z-coordinate after teleporting.&lt;br /&gt;
&lt;br /&gt;
==Source==  &lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who triggered the teleport detection.  &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;
This example will disconnect the suspected player from the server and display a warning about the teleport.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTeleport&amp;quot;, root, function()&lt;br /&gt;
    kickPlayer(source, &amp;quot;AC&amp;quot;, &amp;quot;You were disconnected from the server for attempting to teleport. If this was a mistake, please contact the administration.&amp;quot;)&lt;br /&gt;
end)&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>Imfelipedev</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81794</id>
		<title>OnPlayerTeleport</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81794"/>
		<updated>2025-02-04T23:33:09Z</updated>

		<summary type="html">&lt;p&gt;Imfelipedev: &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|22930|This event is triggered when a player's position changes significantly without direct server intervention, such as the use of [[setElementPosition]] or [[spawnPlayer]].}}&lt;br /&gt;
When the player synchronizes data with the server, the server monitors player positions to detect significant unexpected movements. If a player's position deviates beyond the established threshold without server functions like [[setElementPosition]] or [[spawnPlayer]] being used, this event will be triggered.  &lt;br /&gt;
{{Note|The sensitivity threshold can be adjusted through the '''player_teleport_alert''' setting, which accepts values between 5 and 500 (default: 100).}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float previousX, float previousY, float previousZ, float currentX, float currentY, float currentZ&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''previousX''': A [[float]] representing the player X-coordinate before teleporting.&lt;br /&gt;
*'''previousY''': A [[float]] representing the player Y-coordinate before teleporting.&lt;br /&gt;
*'''previousZ''': A [[float]] representing the player Z-coordinate before teleporting.&lt;br /&gt;
*'''currentX''': A [[float]] representing the player current X-coordinate after teleporting.&lt;br /&gt;
*'''currentY''': A [[float]] representing the player current Y-coordinate after teleporting.&lt;br /&gt;
*'''currentZ''': A [[float]] representing the player current Z-coordinate after teleporting.&lt;br /&gt;
&lt;br /&gt;
==Source==  &lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who triggered the teleport detection.  &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;
This example will disconnect the suspected player from the server and display a warning about the teleport.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTeleport&amp;quot;, root, function()&lt;br /&gt;
    kickPlayer(source, &amp;quot;AC&amp;quot;, &amp;quot;You were disconnected from the server for attempting to teleport. If this was a mistake, please contact the administration.&amp;quot;)&lt;br /&gt;
end)&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>Imfelipedev</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81793</id>
		<title>OnPlayerTeleport</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81793"/>
		<updated>2025-02-04T23:28:31Z</updated>

		<summary type="html">&lt;p&gt;Imfelipedev: /* Parameters */&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|22930|This event is triggered when a player's position changes significantly without direct server intervention, such as the use of [[setElementPosition]] or [[spawnPlayer]].}}&lt;br /&gt;
During intervals defined by the '''player_teleport_alert''' setting, the server monitors player positions to detect significant unexpected movements. If a player's position deviates beyond the established threshold without server functions like [[setElementPosition]] or [[spawnPlayer]] being used, this event will be triggered.&lt;br /&gt;
{{Note|The sensitivity threshold can be adjusted through the '''player_teleport_alert''' setting, which accepts values between 5 and 500 (default: 100).}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float previousX, float previousY, float previousZ, float currentX, float currentY, float currentZ&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''previousX''': A [[float]] representing the player X-coordinate before teleporting.&lt;br /&gt;
*'''previousY''': A [[float]] representing the player Y-coordinate before teleporting.&lt;br /&gt;
*'''previousZ''': A [[float]] representing the player Z-coordinate before teleporting.&lt;br /&gt;
*'''currentX''': A [[float]] representing the player current X-coordinate after teleporting.&lt;br /&gt;
*'''currentY''': A [[float]] representing the player current Y-coordinate after teleporting.&lt;br /&gt;
*'''currentZ''': A [[float]] representing the player current Z-coordinate after teleporting.&lt;br /&gt;
&lt;br /&gt;
==Source==  &lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who triggered the teleport detection.  &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;
This example will disconnect the suspected player from the server and display a warning about the teleport.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTeleport&amp;quot;, root, function()&lt;br /&gt;
    kickPlayer(source, &amp;quot;AC&amp;quot;, &amp;quot;You were disconnected from the server for attempting to teleport. If this was a mistake, please contact the administration.&amp;quot;)&lt;br /&gt;
end)&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>Imfelipedev</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81780</id>
		<title>OnPlayerTeleport</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81780"/>
		<updated>2025-01-31T01:34:47Z</updated>

		<summary type="html">&lt;p&gt;Imfelipedev: &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|22930|This event is triggered when a player's position changes significantly without direct server intervention, such as the use of [[setElementPosition]] or [[spawnPlayer]].}}&lt;br /&gt;
During intervals defined by the '''player_teleport_alert''' setting, the server monitors player positions to detect significant unexpected movements. If a player's position deviates beyond the established threshold without server functions like [[setElementPosition]] or [[spawnPlayer]] being used, this event will be triggered.&lt;br /&gt;
{{Note|The sensitivity threshold can be adjusted through the '''player_teleport_alert''' setting, which accepts values between 5 and 500 (default: 100).}}&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 triggered the teleport detection.  &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;
This example will disconnect the suspected player from the server and display a warning about the teleport.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTeleport&amp;quot;, root, function()&lt;br /&gt;
    kickPlayer(source, &amp;quot;AC&amp;quot;, &amp;quot;You were disconnected from the server for attempting to teleport. If this was a mistake, please contact the administration.&amp;quot;)&lt;br /&gt;
end)&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>Imfelipedev</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81778</id>
		<title>OnPlayerTeleport</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerTeleport&amp;diff=81778"/>
		<updated>2025-01-29T19:35:54Z</updated>

		<summary type="html">&lt;p&gt;Imfelipedev: /* 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|22930|This event is triggered when a player's position changes significantly without being caused by [[setElementPosition]].}}  &lt;br /&gt;
&lt;br /&gt;
During each interval (''player_teleport_alert''), the server monitors player positions and checks for significant unexpected movements. If a player's position deviates beyond the defined threshold without using [[setElementPosition]], this event will be fired.  &lt;br /&gt;
&lt;br /&gt;
The threshold can be configured using ''player_teleport_alert'', which can be set between 5 and 500 (default: 100).  &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 triggered the teleport detection.  &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;
This example will disconnect the suspected player from the server and display a warning about the teleport.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTeleport&amp;quot;, root, function()&lt;br /&gt;
    kickPlayer(source, &amp;quot;AC&amp;quot;, &amp;quot;You were disconnected from the server for attempting to teleport. If this was a mistake, please contact the administration.&amp;quot;)&lt;br /&gt;
end)&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>Imfelipedev</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerChangesProtectedData&amp;diff=81777</id>
		<title>OnPlayerChangesProtectedData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerChangesProtectedData&amp;diff=81777"/>
		<updated>2025-01-29T19:35:17Z</updated>

		<summary type="html">&lt;p&gt;Imfelipedev: &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>Imfelipedev</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerChangesProtectedData&amp;diff=81776</id>
		<title>OnPlayerChangesProtectedData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerChangesProtectedData&amp;diff=81776"/>
		<updated>2025-01-29T19:34:42Z</updated>

		<summary type="html">&lt;p&gt;Imfelipedev: /* 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|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;
This example will disconnect the suspected player from the server and display a warning about the teleport.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerTeleport&amp;quot;, root, function()&lt;br /&gt;
    kickPlayer(source, &amp;quot;AC&amp;quot;, &amp;quot;You were disconnected from the server for attempting to teleport. If this was a mistake, please contact the administration.&amp;quot;)&lt;br /&gt;
end)&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>Imfelipedev</name></author>
	</entry>
</feed>