<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dlett</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dlett"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Dlett"/>
	<updated>2026-05-21T21:19:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleTurnVelocity&amp;diff=60560</id>
		<title>SetVehicleTurnVelocity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleTurnVelocity&amp;diff=60560"/>
		<updated>2018-11-08T15:58:29Z</updated>

		<summary type="html">&lt;p&gt;Dlett: Deprecated method in favor of setElementAngularVelocity&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{Deprecated|setElementAngularVelocity|}}&lt;br /&gt;
Sets the angular velocity of a vehicle. Basically applies a spin to it.&lt;br /&gt;
&lt;br /&gt;
{{Deprecated feature|3.0156|1.5.6|This function will be deprecated in '''1.5.6''', use [[setElementAngularVelocity]] in the future.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setVehicleTurnVelocity ( vehicle theVehicle, float rx, float ry, float rz )           &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[vehicle]]:setTurnVelocity|turnVelocity|getVehicleTurnVelocity}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] to apply the spin to.&lt;br /&gt;
*'''rx:''' velocity around the X axis&lt;br /&gt;
*'''ry:''' velocity around the Y axis&lt;br /&gt;
*'''rz:''' velocity around the Z axis&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if it was succesful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onColShapeHit ( thePlayer, matchingDimension )&lt;br /&gt;
    -- When a player hits the collision shape, check if he's in a vehicle&lt;br /&gt;
    local playerVehicle = getPedOccupiedVehicle ( thePlayer )&lt;br /&gt;
    if playerVehicle ~= false then&lt;br /&gt;
        -- If so, give it a spin&lt;br /&gt;
        setVehicleTurnVelocity ( playerVehicle, 0, 0, 20 )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onColShapeHit&amp;quot;, getRootElement ( ), onColShapeHit )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Dlett</name></author>
	</entry>
</feed>