OnPickupUse

From Multi Theft Auto: Wiki
Revision as of 11:06, 11 September 2006 by EAi (talk | contribs)
Jump to navigation Jump to search


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