<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AchangePed</id>
	<title>Player::changePed - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AchangePed"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::changePed&amp;action=history"/>
	<updated>2026-06-05T11:21:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Player::changePed&amp;diff=4360&amp;oldid=prev</id>
		<title>Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::changePed&amp;diff=4360&amp;oldid=prev"/>
		<updated>2017-05-06T23:46:21Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;b2 and/or b3 maybe got something to do with keeping values from the last player. Both of them set to 1 works great. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Examples from the decompiled scripts:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;PLAYER::CHANGE_PLAYER_PED(PLAYER::PLAYER_ID(), l_5C0[4/*14*/], 0, 1);&amp;lt;br&amp;gt;PLAYER::CHANGE_PLAYER_PED(PLAYER::PLAYER_ID(), a_0[a_0._f7/*1*/], a_2, 0);&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;===========================================================&amp;lt;br&amp;gt;The only way I ever got this to work in GTA Online once is by setting both to 0, 0. However, when you switch from your online character to whomever, your character will start walking away &amp;#039;as if you left the game.&amp;#039; If from there you attempt to call this native once more to switch back to you online player. You will freeze or if you try changing to another player. I&amp;#039;ve tried all posibilities so far.&amp;lt;br&amp;gt;1, 1 (Freeze), 0, 0(Works Once), 1, 0 &amp;amp;amp; 0, 1 (Freeze). Note of course trying to call this on another online player will crash. Anyone have any idea if implementing a blr within the xex itself on a possible check if it would prevent this freezing?&amp;lt;br&amp;gt;===========================================================&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;player.changePed(ped, b2, b3);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ped:&amp;#039;&amp;#039;&amp;#039; Ped handle or object&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;b2:&amp;#039;&amp;#039;&amp;#039; Boolean&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;b3:&amp;#039;&amp;#039;&amp;#039; Boolean&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Player_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Marty uploader</name></author>
	</entry>
</feed>