<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ScriptingExamples%2FPlayerSetPositionNativeMP</id>
	<title>ScriptingExamples/PlayerSetPositionNativeMP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ScriptingExamples%2FPlayerSetPositionNativeMP"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=ScriptingExamples/PlayerSetPositionNativeMP&amp;action=history"/>
	<updated>2026-05-10T14:23:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=ScriptingExamples/PlayerSetPositionNativeMP&amp;diff=11183&amp;oldid=prev</id>
		<title>Vortrex: Created page with &quot;{{DISPLAYTITLE:Set Player Position (GTA IV, Native MP Mode}} == Description == This code sets the position for a player in GTA IV NativeMultiplayer|native MP mode}}. This is necessary because in native MP mode, the server is &#039;&#039;&#039;not&#039;&#039;&#039; aware of &#039;&#039;&#039;ANY&#039;&#039;&#039; game elements, including player peds. The server will need to tell a client to set it&#039;s own player ped&#039;s position.  Note: This is not necessary if you&#039;re not using native MP mode, or are running the server for another g...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=ScriptingExamples/PlayerSetPositionNativeMP&amp;diff=11183&amp;oldid=prev"/>
		<updated>2025-09-01T08:22:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DISPLAYTITLE:Set Player Position (GTA IV, Native MP Mode}} == Description == This code sets the position for a player in GTA IV NativeMultiplayer|native MP mode}}. This is necessary because in native MP mode, the server is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; aware of &amp;#039;&amp;#039;&amp;#039;ANY&amp;#039;&amp;#039;&amp;#039; game elements, including player peds. The server will need to tell a client to set it&amp;#039;s own player ped&amp;#039;s position.  Note: This is not necessary if you&amp;#039;re not using native MP mode, or are running the server for another g...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Set Player Position (GTA IV, Native MP Mode}}&lt;br /&gt;
== Description ==&lt;br /&gt;
This code sets the position for a player in GTA IV [[NativeMultiplayer|native MP mode}}. This is necessary because in native MP mode, the server is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; aware of &amp;#039;&amp;#039;&amp;#039;ANY&amp;#039;&amp;#039;&amp;#039; game elements, including player peds. The server will need to tell a client to set it&amp;#039;s own player ped&amp;#039;s position.&lt;br /&gt;
&lt;br /&gt;
Note: This is not necessary if you&amp;#039;re not using native MP mode, or are running the server for another game.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Server-Side&amp;#039;&amp;#039;&amp;#039; (JavaScript):&lt;br /&gt;
{{JSCode|1=triggerNetworkEvent(&amp;quot;set-my-position&amp;quot;, client, position);}}&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Client-Side&amp;#039;&amp;#039;&amp;#039; (JavaScript):&lt;br /&gt;
{{JSCode|1=addNetworkHandler(&amp;quot;set-my-position&amp;quot;, function(position) {&lt;br /&gt;
    localPlayer.position = position;&lt;br /&gt;
});}}&lt;/div&gt;</summary>
		<author><name>Vortrex</name></author>
	</entry>
</feed>