OnClientPickupHit: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Documented onClientPickupHit)
 
Line 13: Line 13:
The source of this event is the pickup that was hit.
The source of this event is the pickup that was hit.


==Example==
MOJRM-511 was here
This example outputs a message whenever a player hits a pickup locally.
<syntaxhighlight lang="lua">
local function clientPickupHit(thePlayer, matchingDimension)
    outputChatBox("* "..getPlayerName(thePlayer).." hit a pickup!", 255, 0, 0)
end
addEventHandler("onClientPickupHit", root, clientPickupHit)
</syntaxhighlight>


==See Also==
==See Also==

Revision as of 23:25, 1 June 2013