OnPlayerClick: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 6: Line 6:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
void onPlayerClick ( string button, string state, element clickedElement, float posX, float posY, float posZ )
void onPlayerClick ( string button, string state, element clickedElement, float posX, float posY, float posZ, float 2DposX, float 2DposY )
</syntaxhighlight>  
</syntaxhighlight>  



Revision as of 13:06, 4 March 2007


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