Client Scripting Events: Difference between revisions

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


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 )
void [[onClientPlayerTarget]] ( element target )


void [[onClientGUIClicked]] ( element theElement )
void [[onClientGUIClicked]] ( element theElement )

Revision as of 10:34, 14 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 onClientPlayerTarget ( element target )

void onClientGUIClicked ( element theElement )

void onClientGUIChanged ( element theElement )

void onClientGUIAccepted ( element theElement )

void onClientGUIClose ( element theElement )

void onClientGUIKeyDown ( element theElement )

void onClientConsole ( text )