OnPickupUse: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 2: Line 2:


__NOTOC__  
__NOTOC__  
This event is blahblah and is used for blahblah.
This event is triggered when a player stands on a pickup while not in a vehicle.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
void onPickupUse ( player player )  
onPickupUse ( player player )
</syntaxhighlight>  
</syntaxhighlight>  


==Example==  
==Example==  
This example does...
 
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
addEventHandler ( "onPickupUse", getRootElement(), "pickupUse" )
blabhalbalhb --abababa
function pickupUse ( thePlayer )
--This line does this...
    outputChatBox ( getClientName ( thePlayer ) .. " picked up a pickup!" )
mooo
end
</syntaxhighlight>
</syntaxhighlight>

Revision as of 11:06, 11 September 2006


This event is triggered when a player stands on a pickup while not in a vehicle.

Syntax

onPickupUse ( player player )

Example

addEventHandler ( "onPickupUse", getRootElement(), "pickupUse" )
function pickupUse ( thePlayer )
    outputChatBox ( getClientName ( thePlayer ) .. " picked up a pickup!" )
end