Client Scripting Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Changed translations hierarchy)
 
(125 intermediate revisions by 65 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]] ( string name )
 
'''Server-side scripting events can be found here: [[Server Scripting Events]]
void [[onClientResourceStop]] ( string name )
 
==Browser events==
void [[onClientPlayerJoin]] ( void )
{{CEF_events}}
 
void [[onClientPlayerQuit]] ( string reason )
==Colshape events==
 
{{Client_colshape_events}}
void [[onClientPlayerWeaponFire]] ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, [[element]] hitElement )
 
==Element events==
void [[onClientPlayerTarget]] ( [[element]] target )
{{Client_element_events}}
 
bool [[onClientPlayerDamage]] ( [[player]] attacker, int weapon, int bodypart )
==Input events==
 
{{GUI_events}}
void [[onClientPlayerSpawn]] ( [[team]] hisTeam )
 
==Marker events==
void [[onClientPlayerWasted]] ( void )
{{Client_marker_events}}
 
void [[onClientPlayerVehicleEnter]] ( [[vehicle]] theVehicle, int seat )
==Ped events==
 
{{Client_ped_events}}
void [[onClientPlayerVehicleExit]] ( [[vehicle]] theVehicle, int seat )
 
==Pickup events==
void [[onClientPlayerChangeNick]] ( string oldNick )
{{Client_pickup_events}}
 
void [[onClientPlayerTask]] ( string priority, int type, string name )
==Player events==
 
{{Client_player_events}}
void [[onClientVehicleRespawn]] ( void )
 
==Object events==
void [[onClientVehicleEnter]] ( [[player]] thePlayer, int seat )
{{Client_object_events}}
 
void [[onClientVehicleExit]] ( [[player]] thePlayer, int seat )
==Projectile events==
 
{{Client_projectile_events}}
void [[onClientVehicleStartEnter]] ( [[player]] thePlayer, int seat )
 
==Resource events==
void [[onClientVehicleStartExit]] ( [[player]] thePlayer, int seat )
{{Client_resource_events}}
 
void [[onClientTrailerAttach]] ( [[vehicle]] towedBy )
==Sound events==
 
{{Sound_events}}
void [[onClientTrailerDetach]] ( [[vehicle]] towedBy )
 
==Vehicle events==
void [[onClientGUIClicked]] ( [[element]] theElement )
{{Client_vehicle_events}}
 
void [[onClientGUIChanged]] ( [[element]] theElement )
==Weapon creation events==
 
{{Client_weapon_creation_events}}
void [[onClientGUIAccepted]] ( [[element]] theElement )
 
==Other events==
void [[onClientGUIClose]] ( [[element]] theElement )
{{Client_other_events}}
 
void [[onClientGUIKeyDown]] ( [[element]] theElement )
[[ar:Client Scripting Events]]
 
[[es:Client Scripting Events]]
void [[onClientConsole]] ( text )
[[fr:Client Scripting Events]]
 
[[hu:Client Scripting Events]]
void [[onClientRender]] ( )
[[pl:Client Scripting Events]]
 
[[ru:Client Scripting Events]]
void [[onClientClick]] ( string button, string state, cursorX, cursorY, worldX, worldY, worldZ, element clicked )
[[tr:Client Taraflı Eventler]]
 
void [[onClientCursorMove]] ( float cursorX, float cursorY )
 
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