onPedEnterVehicle

Revision as of 04:11, 26 February 2024 by Mex (talk | contribs)

Event Server and Client icon-iii.png icon-vc.png icon-sa.png Online and Offline Not Cancellable

Available since Server 1.0.0, Client 1.0.0

onPedEnterVehicle(Event event, Ped ped, Vehicle vehicle, int seat)

The onPedEnterVehicle event is invoked when a ped enters a vehicle.
If the ped is not near a qualifying position to start the vehicle entering animation, the event is triggered and the ped starts moving towards the vehicle, otherwise the event is triggered and the vehicle entering animation starts. Either way, this event is only triggered once for all individual stages of the ped entering the vehicle.

Parameters

1) Event event The event object for this event.
2) Ped ped The ped that has started moving to enter a vehicle.
3) Vehicle vehicle The vehicle that the ped is moving to.
4) int seat The seat index that the ped is moving to.

Attributes

const This event cannot be cancelled.

Notes

There aren't any notes for this event.

Examples

There aren't any examples for this event.

Compatibility

There isn't any compatibility information for this event.

Related

Server Related

      OnPedCrouch
      OnPedEnterVehicle
      OnPedExitVehicle
      OnPedFall
      OnPedJump
        OnPedSpawn
      OnPedUncrouch
        OnPedWasted


Client Related

      OnPedBusted
      OnPedChangeWeapon
      OnPedCrouch
        OnPedDead
  OnPedEnteredVehicle
      OnPedEnteringVehicle
      OnPedEnterVehicle
  OnPedExitedVehicle
      OnPedExitingVehicle
      OnPedExitVehicle
      OnPedFall
      OnPedFireProjectile
      OnPedInflictDamage
      OnPedJump
        OnPedSpawn
  OnPedStartClosingVehicleDoor
      OnPedStartFightAttack
      OnPedStartFightDefend
  OnPedStartOpeningVehicleDoor
      OnPedUncrouch
      OnPedUseWeapon
        OnPedWasted