PlayerExitColshape: Difference between revisions
(Made example look cooler) |
No edit summary |
||
| Line 22: | Line 22: | ||
==See also== | ==See also== | ||
{{Player_events}} | |||
Revision as of 20:10, 18 September 2017
This event is triggered when a player exits a colshape.
Parameters
- player - player which exited the colshape
- shape - the colshape the player left
Example
Server-Side
let someColShape = mp.colshapes.newRectangle(0, 0, 100, 100);
function playerExitColshapeHandler(player, shape) {
if(shape == someColShape) {
console.log(player.name + " left the colshape!");
}
}
mp.events.add("playerExitColshape", playerExitColshapeHandler);
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