OnPlayerEnterVehicle
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
This event is called when a player enters a Vehicle.
Syntax
onPlayerEnterVehicle( player, vehicle, door )
Arguments
- CPlayer player - The player instance, or the one who is trying to enter.
- CVehicle vehicle - The vehicle instance, or the vehicle which is being entered by the player.
- int door - The door in which the player is entering, i.e, 0 for driver, 1 for passenger.
Example
function onPlayerEnterVehicle( player, vehicle, door )
{
Message( player.Name + " has Entered "+GetVehicleNameFromModel( vehicle.Model ) + "." );
}
Related Functions
- onPlayerEnteringVehicle( player, vehicle, door )
- onPlayerEnterVehicle( player, vehicle, door )
- onPlayerExitVehicle( player, vehicle )
- onVehicleExplode( vehicle )
- onVehicleRespawn( vehicle )
- onVehicleHealthChange( vehicle, oldHP, newHP )
- onVehicleMove( vehicle, lastX, lastY, lastZ, newX, newY, newZ )