<?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=Gameplay%3A%3AsetForcePlayerToJump</id>
	<title>Gameplay::setForcePlayerToJump - 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=Gameplay%3A%3AsetForcePlayerToJump"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Gameplay::setForcePlayerToJump&amp;action=history"/>
	<updated>2026-06-04T08:16:48Z</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=Gameplay::setForcePlayerToJump&amp;diff=21946&amp;oldid=prev</id>
		<title>Shr0x: Created page with &quot;{{ClientsideJsFunction}} {{JSContainer| Set the player to be forced into jump state, should be called in render as it works per frame. ===Required Params=== *&#039;&#039;&#039;handle:&#039;&#039;&#039; {{RageType|number}}  ===Return value=== *&#039;&#039;&#039; {{RageType|void}} &#039;&#039;&#039;  ==Syntax== &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; mp.game.gameplay.setForcePlayerToJump(handle) &lt;/syntaxhighlight&gt;  ==Example== &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; let playerJumping = true; //force player to jump mp.events.add(&#039;render&#039;, (...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Gameplay::setForcePlayerToJump&amp;diff=21946&amp;oldid=prev"/>
		<updated>2024-04-29T16:00:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ClientsideJsFunction}} {{JSContainer| Set the player to be forced into jump state, should be called in render as it works per frame. ===Required Params=== *&amp;#039;&amp;#039;&amp;#039;handle:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}}  ===Return value=== *&amp;#039;&amp;#039;&amp;#039; {{RageType|void}} &amp;#039;&amp;#039;&amp;#039;  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; mp.game.gameplay.setForcePlayerToJump(handle) &amp;lt;/syntaxhighlight&amp;gt;  ==Example== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; let playerJumping = true; //force player to jump mp.events.add(&amp;#039;render&amp;#039;, (...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
Set the player to be forced into jump state, should be called in render as it works per frame.&lt;br /&gt;
===Required Params===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;handle:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}}&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039; {{RageType|void}} &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.gameplay.setForcePlayerToJump(handle)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let playerJumping = true;&lt;br /&gt;
//force player to jump&lt;br /&gt;
mp.events.add(&amp;#039;render&amp;#039;, () =&amp;gt; {&lt;br /&gt;
 if (playerJumping) mp.game.gameplay.setForcePlayerToJump(mp.players.local.handle);&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
//stop making the player jump after 5 seconds&lt;br /&gt;
setTimeout(() =&amp;gt; {&lt;br /&gt;
 playerJumping = false;&lt;br /&gt;
}, 5000)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
==See also==&lt;br /&gt;
{{Gameplay_definition_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>Shr0x</name></author>
	</entry>
</feed>