Server Scripting Events: Difference between revisions

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


===Server Events===
To request a event, create an issue in [https://github.com/multitheftauto/mtasa-blue/issues our GitHub repository.]
void [[onClientLogin]] ( [[account]] previous_account, [[account]] current_account, bool auto-login )
'''Client-side scripting events can be found here: [[Client Scripting Events]]
==Account events==
{{Account_events}}
==Client events==
{{Client_events}}
==Colshape events==
{{Colshape_events}}
==Element events==
{{Element_events}}
==Marker events==
{{Marker_events}}
==Pickup events==
{{Pickup_events}}
==Player events==
{{Player_events}}
==Ped events==
{{Ped_events}}
==Resource events==
{{Resource_events}}
==Server events==
{{Server_events}}
==Vehicle events==
{{Vehicle_events}}
==Weapon events==
{{Weapon_events}}


void [[onClientLogout]] ( [[account]] previous_account, [[account]] current_account )
[[ar:Server Scripting Events]]
 
[[fr:Server Scripting Events]]
void [[onColShapeHit]] ( [[player]] player, bool matchingDimension )
[[hu:Server Scripting Events]]
 
[[pl:Server Scripting Events]]
void [[onColShapeLeave]] ( [[player]] player, bool matchingDimension )
[[pt-br:Eventos de Scripting do Servidor]]
 
[[ru:Server Scripting Events]]
void [[onConsole]] ( string message )
[[tr:Server Scripting Events]]
 
void [[onElementDataChange]] ( string name )
 
void [[onElementColShapeHit]] ( [[colshape]] hitcolshape, bool matchingDimension )
 
void [[onElementColShapeLeave]] ( [[colshape]] leftcolshape, bool matchingDimension )
 
void [[onElementClicked]] ( string button, string state, [[player]] clicker, float posX, float posY, float posZ )
 
void [[onMarkerHit]] ( [[player]] hitplayer, bool matchingDimension )
 
void [[onMarkerLeave]] ( [[player]] leftplayer, bool matchingDimension )
 
void [[onPickupSpawn]] ()
 
void [[onPickupHit]] ( [[player]] player, bool matchingDimension )
 
void [[onPickupLeave]] ( [[player]] player, bool matchingDimension )
 
void [[onPickupUse]] ( [[player]] player )
 
void [[onPlayerChat]] ( string message, int type )
 
void [[onPlayerDamage]] ( [[element]] attacker, int attackerweapon, int bodypart, float loss )
 
void [[onPlayerJoin]] ()
 
void [[onPlayerQuit]] ( string reason )
 
void [[onPlayerSpawn]] ( [[spawnpoint]] spawnpoint, team )
 
void [[onPlayerWasted]] ( int ammo, [[element]] killer, int killerweapon, int bodypart )
 
void [[onPlayerTarget]] ( [[element]] targetedElement )
 
void [[onPlayerEnterVehicle]] ( [[vehicle]] vehicle, int seat, [[player]] jacked )
 
void [[onPlayerExitVehicle]] ( [[vehicle]] vehicle, int seat, [[player]] jacker )
 
void [[onPlayerWeaponSwitch]] ( int previousWeaponID, int currentWeaponID )
 
void [[onPlayerTask]] ( string priority, int type, string name )
 
void [[onPlayerMarkerHit]] ( [[marker]] hitmarker, bool matchingDimension )
 
void [[onPlayerMarkerLeave]] ( [[marker]] leftmarker, bool matchingDimension )
 
void [[onPlayerPickupHit]] ( [[pickup]] hitpickup, bool matchingDimension )
 
void [[onPlayerPickupLeave]] ( [[pickup]] leftpickup, bool matchingDimension )
 
void [[onPlayerPickupUse]] ( [[pickup]] usedpickup )
 
void [[onPlayerClick]] ( string button, string state, [[element]] clickedElement, float posX, float posY, float posZ )
 
void [[onResourceStart]] ( [[resource]] resource )
 
void [[onResourceStop]] ( [[resource]] resource )
 
void [[onSpawnpointUse]] ( [[player]] player )
 
void [[onTrailerAttach]] ( [[vehicle]] towedBy )
 
void [[onTrailerDetach]] ( [[vehicle]] towedBy )
 
void [[onVehicleDamage]] ( float loss )
 
void [[onVehicleRespawn]] ( bool explosion )
 
void [[onVehicleStartEnter]] ( [[player]] player, int seat, [[player]] jacked )
 
void [[onVehicleStartExit]] ( [[player]] player, int seat, [[player]] jacker )
 
void [[onVehicleEnter]] ( [[player]] player, int seat, [[player]] jacked )
 
void [[onVehicleExit]] ( [[player]] player, int seat, [[player]] jacker )
 
void [[onVehicleExplode]] ()

Latest revision as of 14:15, 7 August 2023

This page lists all server-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.

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

Account events


Client events


Colshape events


Element events


Marker events


Pickup events


Player events


Ped events


Resource events


Server events


Vehicle events


Weapon events