OnPlayerClick

From Multi Theft Auto: Wiki
Revision as of 04:55, 12 April 2007 by Ransom (talk | contribs)
Jump to navigation Jump to search
Dialog-information.png This article needs checking.

Reason(s): Lua and MTA do not like 2DposX and 2DposY stored varibles by the event


This event is triggered when a player clicks an element with the mouse cursor.

Syntax

void onPlayerClick ( string button, string state, element clickedElement, float posX, float posY, float posZ, float 2DposX, float 2DposY )

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo