<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Crltoz</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Crltoz"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/Crltoz"/>
	<updated>2026-06-04T07:58:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Player::setSwimMultiplierForPlayer&amp;diff=21090</id>
		<title>Player::setSwimMultiplierForPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::setSwimMultiplierForPlayer&amp;diff=21090"/>
		<updated>2021-11-11T18:23:48Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: bad function name&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Swim speed multiplier.&amp;lt;br&amp;gt;Multiplier goes up to 1.49&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Just call it one time, it is not required to be called once every tick. - Note copied from below native.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Note: At least the IDA method if you change the max float multiplier from 1.5 it will change it for both this and RUN_SPRINT below. I say 1.5 as the function blrs if what you input is greater than or equal to 1.5 hence why it&#039;s 1.49 max default.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.player.setSwimMultiplierFor(multiplier);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;multiplier:&#039;&#039;&#039; float&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#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_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::wheelType&amp;diff=21089</id>
		<title>Vehicle::wheelType</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::wheelType&amp;diff=21089"/>
		<updated>2021-11-01T17:15:01Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&amp;lt;br&amp;gt;Gets/Sets the vehicle&#039;s wheel type.&lt;br /&gt;
&lt;br /&gt;
==Getter==&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:#008017&amp;quot;&amp;gt;Number&amp;lt;/span&amp;gt; - [[Wheels Type]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Setter==&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:#008017&amp;quot;&amp;gt;Number&amp;lt;/span&amp;gt; - [[Wheels Type]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;WheelType:&#039;&#039;&#039; int&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ServersideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
let wheelType = mp.vehicles.at(0).wheelType; // GETTER&lt;br /&gt;
&lt;br /&gt;
mp.vehicles.at(0).wheelType = 11; // SETTER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Wheel Types ===&lt;br /&gt;
*-1: Stock&lt;br /&gt;
*0: Sport&lt;br /&gt;
*1: Muscle&lt;br /&gt;
*2: Lowrider&lt;br /&gt;
*3: SUV&lt;br /&gt;
*4: Offroad&lt;br /&gt;
*5: Tuner&lt;br /&gt;
*6: Bike Wheels&lt;br /&gt;
*7: High End&lt;br /&gt;
*8: Benny&#039;s Original&lt;br /&gt;
*9: Benny&#039;s Bespoke&lt;br /&gt;
*10: Open Wheel&lt;br /&gt;
*11: Street&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;unknown&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::wheelType&amp;diff=21088</id>
		<title>Vehicle::wheelType</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::wheelType&amp;diff=21088"/>
		<updated>2021-11-01T17:09:25Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&amp;lt;br&amp;gt;Sets the vehicle&#039;s wheel type.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.wheelType = wheelType;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;WheelType:&#039;&#039;&#039; int&lt;br /&gt;
&lt;br /&gt;
===Wheel Types ===&lt;br /&gt;
*-1: Stock&lt;br /&gt;
*0: Sport&lt;br /&gt;
*1: Muscle&lt;br /&gt;
*2: Lowrider&lt;br /&gt;
*3: SUV&lt;br /&gt;
*4: Offroad&lt;br /&gt;
*5: Tuner&lt;br /&gt;
*6: Bike Wheels&lt;br /&gt;
*7: High End&lt;br /&gt;
*8: Benny&#039;s Original&lt;br /&gt;
*9: Benny&#039;s Bespoke&lt;br /&gt;
*10: Open Wheel&lt;br /&gt;
*11: Street&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;unknown&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ServerSide}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.vehicles.at(0).wheelType = 11; // set street wheels&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::wheelType&amp;diff=21087</id>
		<title>Vehicle::wheelType</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::wheelType&amp;diff=21087"/>
		<updated>2021-11-01T05:50:06Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: Created page with &amp;quot;__TOC__ &amp;lt;br&amp;gt;Sets the vehicle&amp;#039;s wheel type.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.setWheelType(WheelType);&amp;lt;/syntaxhighlight&amp;gt;  === Required Arguments === *&amp;#039;&amp;#039;&amp;#039;Wh...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&amp;lt;br&amp;gt;Sets the vehicle&#039;s wheel type.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.setWheelType(WheelType);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;WheelType:&#039;&#039;&#039; int&lt;br /&gt;
&lt;br /&gt;
===Wheel Types ===&lt;br /&gt;
*-1: Stock&lt;br /&gt;
*0: Sport&lt;br /&gt;
*1: Muscle&lt;br /&gt;
*2: Lowrider&lt;br /&gt;
*3: SUV&lt;br /&gt;
*4: Offroad&lt;br /&gt;
*5: Tuner&lt;br /&gt;
*6: Bike Wheels&lt;br /&gt;
*7: High End&lt;br /&gt;
*8: Benny&#039;s Original&lt;br /&gt;
*9: Benny&#039;s Bespoke&lt;br /&gt;
*10: Open Wheel&lt;br /&gt;
*11: Street&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;unknown&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ServerSide}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.vehicles.at(0).wheelType = 11; // set street wheels&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::getClass&amp;diff=21082</id>
		<title>Vehicle::getClass</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::getClass&amp;diff=21082"/>
		<updated>2021-10-09T00:53:50Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: add trailers to get class&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
Gets the Vehicle Class.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Vehicle Classes&amp;lt;/b&amp;gt;:&amp;lt;br&amp;gt;0: Compacts&amp;lt;br&amp;gt;1: Sedans&amp;lt;br&amp;gt;2: SUVs&amp;lt;br&amp;gt;3: Coupes&amp;lt;br&amp;gt;4: Muscle&amp;lt;br&amp;gt;5: Sports Classics&amp;lt;br&amp;gt;6: Sports&amp;lt;br&amp;gt;7: Super&amp;lt;br&amp;gt;8: Motorcycles&amp;lt;br&amp;gt;9: Off-road&amp;lt;br&amp;gt;10: Industrial&amp;lt;br&amp;gt;11: Utility (and Trailers)&amp;lt;br&amp;gt;12: Vans&amp;lt;br&amp;gt;13: Cycles&amp;lt;br&amp;gt;14: Boats&amp;lt;br&amp;gt;15: Helicopters&amp;lt;br&amp;gt;16: Planes&amp;lt;br&amp;gt;17: Service&amp;lt;br&amp;gt;18: Emergency&amp;lt;br&amp;gt;19: Military&amp;lt;br&amp;gt;20: Commercial&amp;lt;br&amp;gt;21: Trains&amp;lt;br&amp;gt;22: Open Wheels&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.getClass();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;int&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let vehicle = mp.players.local.vehicle;&lt;br /&gt;
let vehClass = vehicle.getClass(); // Defining a variable with the return value of vehicle.getClass()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Vehicle_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Controls::getDisabledControlNormal&amp;diff=21076</id>
		<title>Controls::getDisabledControlNormal</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Controls::getDisabledControlNormal&amp;diff=21076"/>
		<updated>2021-09-20T04:11:28Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: add input and control page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;control - c# works with (int)GTA.Control.CursorY / (int)GTA.Control.CursorX and returns the mouse movement (additive).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;0, 1 and 2 used in the scripts. 0 is by far the most common of them.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.controls.getDisabledControlNormal(inputGroup, control);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;inputGroup:&#039;&#039;&#039; {{RageType|Int}} ([[InputGroup|Input Groups]])&lt;br /&gt;
*&#039;&#039;&#039;control:&#039;&#039;&#039; {{RageType|Int}} ([[Controls|Controls]])&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;float&#039;&#039;&#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;
{{Controls_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Player::taskMoveNetwork&amp;diff=20831</id>
		<title>Player::taskMoveNetwork</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::taskMoveNetwork&amp;diff=20831"/>
		<updated>2021-07-24T17:59:42Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: add list of tasks names&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example:&amp;lt;br&amp;gt;Player::_2D537BA194896636(PLAYER::PLAYER_Player_ID(), &#039;arm_wrestling_sweep_paired_a_rev3&#039;, 0.0, 1, &#039;mini@arm_wrestling&#039;, 0);&lt;br /&gt;
&lt;br /&gt;
List of tasks names: https://pastebin.com/fS0XQnwG (Thanks to noBrain#0032)&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;player.taskMoveNetwork(task, multiplier, p3, animDict, flags);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;task:&#039;&#039;&#039; String&lt;br /&gt;
*&#039;&#039;&#039;multiplier:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;p3:&#039;&#039;&#039; Boolean&lt;br /&gt;
*&#039;&#039;&#039;animDict:&#039;&#039;&#039; String&lt;br /&gt;
*&#039;&#039;&#039;flags:&#039;&#039;&#039; int&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#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>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Mobile::setMobilePhoneRotation&amp;diff=20830</id>
		<title>Mobile::setMobilePhoneRotation</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Mobile::setMobilePhoneRotation&amp;diff=20830"/>
		<updated>2021-07-24T02:51:20Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Last parameter is unknown and always zero.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.mobile.setMobilePhoneRotation(rotX, rotY, rotZ, p3);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;rotX:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;rotY:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;rotZ:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;p3:&#039;&#039;&#039; int (unknown)&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#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;
{{Mobile_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:Mobile API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setLoadCollisionFlag&amp;diff=20752</id>
		<title>Entity::setLoadCollisionFlag</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setLoadCollisionFlag&amp;diff=20752"/>
		<updated>2021-06-07T19:43:40Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: add information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Loads collision grid for an entity spawned outside of a player&#039;s loaded area. This allows peds to execute tasks rather than sit dormant because of a lack of a physics grid.&lt;br /&gt;
&lt;br /&gt;
Certainly not the main usage of this native but when set to true for a Vehicle, it will prevent the vehicle to explode if it is spawned far away from the player.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setLoadCollisionFlag(toggle);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;toggle:&#039;&#039;&#039; Boolean&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#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;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Script::requestScript&amp;diff=20751</id>
		<title>Script::requestScript</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Script::requestScript&amp;diff=20751"/>
		<updated>2021-06-07T19:12:28Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: change pastebin link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For a full list, see here: pastebin.com/K9adDsu4&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.script.requestScript(scriptName);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;scriptName:&#039;&#039;&#039; String&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#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;
{{Script_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:Script API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Object::createObject&amp;diff=20750</id>
		<title>Object::createObject</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Object::createObject&amp;diff=20750"/>
		<updated>2021-06-07T19:08:29Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: add returns value&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;p5 - last parameter does not mean object handle is returned&amp;lt;br&amp;gt;maybe a quick view in disassembly will tell us what is actually does &lt;br /&gt;
&lt;br /&gt;
This returns a script handle (fwScriptGuid index) for the object, or 0 if the object failed to be created. (NOT IS A OBJECT HANDLE)&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.object.createObject(modelHash, x, y, z, networkHandle, createHandle, dynamic);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;modelHash:&#039;&#039;&#039; Model hash or name&lt;br /&gt;
*&#039;&#039;&#039;x:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;y:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;z:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;networkHandle:&#039;&#039;&#039; Boolean&lt;br /&gt;
*&#039;&#039;&#039;createHandle:&#039;&#039;&#039; Boolean&lt;br /&gt;
*&#039;&#039;&#039;dynamic:&#039;&#039;&#039; Boolean&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Script handle&#039;&#039;&#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;
{{Object_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::setDamage&amp;diff=20664</id>
		<title>Vehicle::setDamage</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::setDamage&amp;diff=20664"/>
		<updated>2021-04-29T21:53:52Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Apply damage to vehicle at a location. Location is relative to vehicle model (not world).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Radius of effect damage applied in a sphere at impact location&lt;br /&gt;
It is enough to use x,y,z values from -1 to 1.&lt;br /&gt;
When focusOnModel set to true, the damage sphere will travel towards the vehicle from the given point, thus guaranteeing an impact&lt;br /&gt;
Good values for radius could be from 25 to 200, for damage 50-200.&lt;br /&gt;
You need to apply delay if you want to call setDamage couple times in a row. Typically 10ms is enough.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.setDamage(xOffset, yOffset, zOffset, damage, radius, focusOnModel);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;xOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;yOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;zOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;damage:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;radius:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;focusOnModel:&#039;&#039;&#039; Boolean&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#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;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::setDamage&amp;diff=20663</id>
		<title>Vehicle::setDamage</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::setDamage&amp;diff=20663"/>
		<updated>2021-04-29T21:53:36Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Apply damage to vehicle at a location. Location is relative to vehicle model (not world).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Radius of effect damage applied in a sphere at impact location&lt;br /&gt;
It is enough to use x,y,z values from -1 to 1.&lt;br /&gt;
When focusOnModel set to true, the damage sphere will travel towards the vehicle from the given point, thus guaranteeing an impact&lt;br /&gt;
Good values for radius could be from 25 to 200, for damage 50-200.&lt;br /&gt;
You need to apply delay if you want to call setDamage couple times in a row. Typically 10ms is enough.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.setDamage(xOffset, yOffset, zOffset, damage, radius, p6);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;xOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;yOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;zOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;damage:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;radius:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;focusOnModel:&#039;&#039;&#039; Boolean&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#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;
&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::setDamage&amp;diff=20662</id>
		<title>Vehicle::setDamage</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::setDamage&amp;diff=20662"/>
		<updated>2021-04-29T21:52:24Z</updated>

		<summary type="html">&lt;p&gt;Crltoz: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Apply damage to vehicle at a location. Location is relative to vehicle model (not world).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Radius of effect damage applied in a sphere at impact location&lt;br /&gt;
It is enough to use x,y,z values from -1 to 1.&lt;br /&gt;
p6 should be true, with false it does not taking in account offset values and all damage is applied to rear left part of the vehicle.&lt;br /&gt;
Good values for radius could be from 25 to 200, for damage 50-200.&lt;br /&gt;
You need to apply delay if you want to call setDamage couple times in a row. Typically 10ms is enough.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.setDamage(xOffset, yOffset, zOffset, damage, radius, p6);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;xOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;yOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;zOffset:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;damage:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;radius:&#039;&#039;&#039; float&lt;br /&gt;
*&#039;&#039;&#039;focusOnModel:&#039;&#039;&#039; Boolean&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#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;
&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Crltoz</name></author>
	</entry>
</feed>