<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/OnClientPickupLeave?action=history&amp;feed=atom</id>
	<title>OnClientPickupLeave - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/OnClientPickupLeave?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPickupLeave&amp;action=history"/>
	<updated>2026-05-16T21:37:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPickupLeave&amp;diff=29651&amp;oldid=prev</id>
		<title>John: Documented onClientPickupLeave</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPickupLeave&amp;diff=29651&amp;oldid=prev"/>
		<updated>2012-03-18T06:53:13Z</updated>

		<summary type="html">&lt;p&gt;Documented onClientPickupLeave&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This event triggers whenever a pickup is left clientside.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player thePlayer, bool matchingDimension&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''thePlayer:''' the player that left the pickup&lt;br /&gt;
*'''matchingDimension:''' ''true'' if thePlayer is in the same dimension as the pickup, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the pickup that was left.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example outputs a message whenever a player leaves a pickup locally.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local function clientPickupLeave(thePlayer, matchingDimension)&lt;br /&gt;
    outputChatBox(&amp;quot;* &amp;quot;..getPlayerName(thePlayer)..&amp;quot; left a pickup!&amp;quot;, 255, 0, 0)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPickupLeave&amp;quot;, root, clientPickupLeave)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client pickup events===&lt;br /&gt;
{{Client_pickup_events}}&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>John</name></author>
	</entry>
</feed>