OnPickupUse

From Multi Theft Auto: Wiki
Revision as of 11:07, 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 )

Canceling

If this event is canceled, the player will not be given the item they picked up.

Example

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