<?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=Vehicle%3A%3AcreateDriveForceCurve</id>
	<title>Vehicle::createDriveForceCurve - 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=Vehicle%3A%3AcreateDriveForceCurve"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::createDriveForceCurve&amp;action=history"/>
	<updated>2026-06-04T18:24: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=Vehicle::createDriveForceCurve&amp;diff=27404&amp;oldid=prev</id>
		<title>Shr0x: Created page with &quot;{{ClientsideJsFunction}} {{JSContainer|  === Summary === Creates a custom drive force curve for vehicles, defining how input RPM maps to output drive force.  === Syntax === &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; mp.game.vehicle.createDriveForceCurve(curveNameHash, curveData); &lt;/syntaxhighlight&gt;  === Required Parameters === * &#039;&#039;&#039;curveNameHash:&#039;&#039;&#039; {{RageType|number}} - The hash identifier for the curve. * &#039;&#039;&#039;curveData:&#039;&#039;&#039; {{RageType|Array&lt;number&gt;}} - Array of alternating X (i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::createDriveForceCurve&amp;diff=27404&amp;oldid=prev"/>
		<updated>2024-12-24T22:51:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ClientsideJsFunction}} {{JSContainer|  === Summary === Creates a custom drive force curve for vehicles, defining how input RPM maps to output drive force.  === Syntax === &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; mp.game.vehicle.createDriveForceCurve(curveNameHash, curveData); &amp;lt;/syntaxhighlight&amp;gt;  === Required Parameters === * &amp;#039;&amp;#039;&amp;#039;curveNameHash:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - The hash identifier for the curve. * &amp;#039;&amp;#039;&amp;#039;curveData:&amp;#039;&amp;#039;&amp;#039; {{RageType|Array&amp;lt;number&amp;gt;}} - Array of alternating X (i...&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;
&lt;br /&gt;
=== Summary ===&lt;br /&gt;
Creates a custom drive force curve for vehicles, defining how input RPM maps to output drive force.&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.vehicle.createDriveForceCurve(curveNameHash, curveData);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Parameters ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;curveNameHash:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} - The hash identifier for the curve.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;curveData:&amp;#039;&amp;#039;&amp;#039; {{RageType|Array&amp;lt;number&amp;gt;}} - Array of alternating X (input RPM) and Y (output drive force).&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
const curveHash = mp.game.joaat(&amp;quot;custom_curve&amp;quot;);&lt;br /&gt;
const curveData = [0.0, 0.0, 0.5, 1.0, 1.0, 0.8];&lt;br /&gt;
&lt;br /&gt;
mp.game.vehicle.createDriveForceCurve(curveHash, curveData);&lt;br /&gt;
mp.gui.chat.push(`Drive force curve created: ${curveHash}`);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Vehicle_functions_c}}&lt;/div&gt;</summary>
		<author><name>Shr0x</name></author>
	</entry>
</feed>