Client Scripting Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 2: Line 2:


===Client Events===
===Client Events===
void [[onClientMapLoad]] ( string name )
void [[onClientResourceStart]] ( string name )
 
void [[onClientResourceStop]] ( string name )
void [[onClientMapUnload]] ( void )


void [[onClientWeaponFire]] ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, [[element]] hitElement )
void [[onClientWeaponFire]] ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, [[element]] hitElement )


<div style="border: 3px solid green;padding:5px">WARNING: These events will change their names to onClientGUI... in the near future</div>
void [[onClientGUIClicked]] ( element theElement )
bool [[guiWindowEventOnKeyDown]] ( [[element]] theElement, callback )
void [[onClientGUIChanged]] ( element theElement )
 
void [[onClientGUIAccepted]] ( element theElement )
bool [[guiWindowEventOnClose]] ( [[element]] theElement, callback )
void [[onClientGUIClose]] ( element theElement )
 
void [[onClientGUIKeyDown]] ( element theElement )
bool [[guiEditEventOnChanged]] ( [[element]] theElement, callback )


bool [[guiEditEventOnAccepted]] ( [[element]] theElement, callback )
void [[onClientConsole]] ( text )

Revision as of 11:15, 6 March 2007

This is a list of client-side scripting events that currently exist. More will come soon.

Client Events

void onClientResourceStart ( string name ) void onClientResourceStop ( string name )

void onClientWeaponFire ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, element hitElement )

void onClientGUIClicked ( element theElement ) void onClientGUIChanged ( element theElement ) void onClientGUIAccepted ( element theElement ) void onClientGUIClose ( element theElement ) void onClientGUIKeyDown ( element theElement )

void onClientConsole ( text )