<?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%2FPlayerJumpCommands</id>
	<title>ScriptingExamples/PlayerJumpCommands - 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%2FPlayerJumpCommands"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=ScriptingExamples/PlayerJumpCommands&amp;action=history"/>
	<updated>2026-04-30T10:18: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/PlayerJumpCommands&amp;diff=3994&amp;oldid=prev</id>
		<title>Mex at 22:33, 17 August 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=ScriptingExamples/PlayerJumpCommands&amp;diff=3994&amp;oldid=prev"/>
		<updated>2018-08-17T22:33:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Player Jump Commands}}&lt;br /&gt;
== Description ==&lt;br /&gt;
This code increases the player&amp;#039;s Z velocity when &amp;lt;code&amp;gt;/jump&amp;lt;/code&amp;gt; is typed, or increases the Z position when &amp;lt;code&amp;gt;/jump2&amp;lt;/code&amp;gt; is typed.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Lua, Client-Side, GTAC versions 1.0.72 and newer:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{LuaCode|1=addCommandHandler(&amp;#039;jump&amp;#039;, function(cmd,args)&lt;br /&gt;
	local value = tonumber(args) or 5&lt;br /&gt;
	local v = localPlayer.velocity&lt;br /&gt;
	localPlayer.velocity = {v.x,v.y,v.z+value}&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;#039;jump2&amp;#039;, function(cmd,args)&lt;br /&gt;
	local value = tonumber(args) or 5&lt;br /&gt;
	local p = localPlayer.position&lt;br /&gt;
	localPlayer.position = {p.x,p.y,p.z+value}&lt;br /&gt;
end)}}&lt;/div&gt;</summary>
		<author><name>Mex</name></author>
	</entry>
</feed>