PlayerDamage
Event triggered when a player gets damage.
Server-Side Event
C# | JavaScript |
---|
C# Syntax
See OnPlayerDamage.
JavaScript Syntax
Parameters
- player: Player
- healthLoss: Number
- armorLoss: Number
Example
mp.events.add("playerDamage", (player, healthLoss, armorLoss) => {
// Do what you want.
});
See also
Checkpoint
Colshape
Entity
Player
- playerChat
- playerCommand
- playerDamage
- playerDeath
- playerJoin
- playerQuit
- playerReady
- playerSpawn
- playerWeaponChange
Streaming
Vehicle
- playerStartEnterVehicle
- playerEnterVehicle
- playerStartExitVehicle
- playerExitVehicle
- trailerAttached
- vehicleDamage
- vehicleDeath
- vehicleHornToggle
- vehicleSirenToggle