<?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=LightScribe</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=LightScribe"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/LightScribe"/>
	<updated>2026-06-24T10:52:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=PlayerLeaveVehicle&amp;diff=19769</id>
		<title>PlayerLeaveVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=PlayerLeaveVehicle&amp;diff=19769"/>
		<updated>2020-07-27T12:25:04Z</updated>

		<summary type="html">&lt;p&gt;LightScribe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Triggers when the player exits the vehicle.&lt;br /&gt;
&lt;br /&gt;
{{ClientsideCsJsEvent}}&lt;br /&gt;
&lt;br /&gt;
{{CSharpContainer|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
public delegate void OnPlayerLeaveVehicleDelegate();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
&#039;&#039;This event has no parameters&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Example}}&lt;br /&gt;
The example below send a chat message to the player when they exit a vehicle.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
Events.OnPlayerLeaveVehicle += OnPlayerLeaveVehicle;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
public void OnPlayerLeaveVehicle(RAGE.Elements.Vehicle vehicle, int seat)&lt;br /&gt;
{&lt;br /&gt;
    RAGE.Chat.Output(&amp;quot;You exited a vehicle&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
*&#039;&#039;&#039;vehicle&#039;&#039;&#039;: {{RageType|Object}}&lt;br /&gt;
*&#039;&#039;&#039;seat&#039;&#039;&#039;: {{RageType|Int}}&lt;br /&gt;
&lt;br /&gt;
{{Example}}&lt;br /&gt;
This example outputs a chat message when the player start&#039;s to leave from the car and their seat ID.&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.events.add(&amp;quot;playerLeaveVehicle&amp;quot;, (vehicle, seat) =&amp;gt; {&lt;br /&gt;
    mp.gui.chat.push(`You are now leaving the vehicle from seat ${seat}`);&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_events}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Player]]&lt;br /&gt;
[[Category:Vehicle]]&lt;br /&gt;
[[Category:Client-side Event]]&lt;/div&gt;</summary>
		<author><name>LightScribe</name></author>
	</entry>
</feed>