Client Scripting Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Changed translations hierarchy)
 
(112 intermediate revisions by 61 users not shown)
Line 1: Line 1:
This is a list of client-side scripting events that currently exist. More will come soon.
<pageclass class="client"></pageclass>
This page lists all '''client-side''' scripting [[event]]s that have been implemented and are available in the Deathmatch mod.


===Client Events===
To request a event, create an issue in [https://github.com/multitheftauto/mtasa-blue/issues our GitHub repository.]
void [[onClientResourceStart]] ( [[resource]] resource )
 
'''Server-side scripting events can be found here: [[Server Scripting Events]]
void [[onClientResourceStop]] ( [[resource]] resource )
 
==Browser events==
void [[onClientElementDataChange]] ( string name )
{{CEF_events}}
 
void [[onClientPlayerJoin]] ( void )
==Colshape events==
 
{{Client_colshape_events}}
void [[onClientPlayerQuit]] ( string reason )
 
==Element events==
void [[onClientPlayerWeaponFire]] ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, [[element]] hitElement )
{{Client_element_events}}
 
void [[onClientPlayerWeaponSwitch]] ( int previous, int current )
==Input events==
 
{{GUI_events}}
void [[onClientPlayerTarget]] ( [[element]] target )
 
==Marker events==
void [[onClientPlayerDamage]] ( [[element]] attacker, int weapon, int bodypart )
{{Client_marker_events}}
 
void [[onClientPlayerSpawn]] ( [[team]] hisTeam )
==Ped events==
 
{{Client_ped_events}}
void [[onClientPlayerWasted]] ( [[element]] attacker, int weapon, int bodypart )
 
==Pickup events==
void [[onClientPlayerVehicleEnter]] ( [[vehicle]] theVehicle, int seat )
{{Client_pickup_events}}
 
void [[onClientPlayerVehicleExit]] ( [[vehicle]] theVehicle, int seat )
==Player events==
 
{{Client_player_events}}
void [[onClientPlayerChangeNick]] ( string oldNick )
 
==Object events==
void [[onClientPlayerTask]] ( string priority, int type, string name )
{{Client_object_events}}
 
void [[onClientVehicleRespawn]] ( void )
==Projectile events==
 
{{Client_projectile_events}}
void [[onClientVehicleEnter]] ( [[player]] thePlayer, int seat )
 
==Resource events==
void [[onClientVehicleExit]] ( [[player]] thePlayer, int seat )
{{Client_resource_events}}
 
void [[onClientVehicleStartEnter]] ( [[player]] thePlayer, int seat )
==Sound events==
 
{{Sound_events}}
void [[onClientVehicleStartExit]] ( [[player]] thePlayer, int seat )
 
==Vehicle events==
void [[onClientTrailerAttach]] ( [[vehicle]] towedBy )
{{Client_vehicle_events}}
 
void [[onClientTrailerDetach]] ( [[vehicle]] towedBy )
==Weapon creation events==
 
{{Client_weapon_creation_events}}
void [[onClientGUIClicked]] ( [[element]] theElement )
 
==Other events==
void [[onClientGUIDoubleClicked]] ( [[element]] theElement )
{{Client_other_events}}
 
void [[onClientGUIChanged]] ( [[element]] theElement )
[[ar:Client Scripting Events]]
 
[[es:Client Scripting Events]]
void [[onClientGUIAccepted]] ( [[element]] theElement )
[[fr:Client Scripting Events]]
 
[[hu:Client Scripting Events]]
void [[onClientGUIClose]] ( [[element]] theElement )
[[pl:Client Scripting Events]]
 
[[ru:Client Scripting Events]]
void [[onClientGUIKeyDown]] ( [[element]] theElement )
[[tr:Client Taraflı Eventler]]
 
void [[onClientConsole]] ( text )
 
void [[onClientRender]] ( )
 
void [[onClientClick]] ( string button, string state, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ, [[element]] clicked )
 
void [[onClientDoubleClick]] ( string button, string state, float cursorX, float cursorY, float worldX, float worldY, float worldZ, [[element]] clicked )
 
void [[onClientMouseMove]] ( int absoluteX, int absoluteY )
 
void [[onClientCursorMove]] ( float cursorX, float cursorY, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ )
 
void [[onClientGUIMove]] ()
 
void [[onClientGUISize]] ()
 
void [[onClientColShapeHit]] ( [[entity]] theEntity, bool matchingDimension )
 
void [[onClientColShapeLeave]] ( [[entity]] theEntity, bool matchingDimension )
 
void [[onClientElementColShapeHit]] ( [[colshape]] theShape, bool matchingDimension )
 
void [[onClientElementColShapeLeave]] ( [[colshape]] theShape, bool matchingDimension )

Latest revision as of 14:05, 7 August 2023

This page lists all client-side scripting events that have been implemented and are available in the Deathmatch mod.

To request a event, create an issue in our GitHub repository.

Server-side scripting events can be found here: Server Scripting Events

Browser events


Colshape events


Element events


Input events

Input

GUI


Marker events


Ped events


Pickup events


Player events


Object events


Projectile events


Resource events


Sound events


Vehicle events


Weapon creation events


Other events