OnPedEnterVehicle: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 4: Line 4:
|type = event
|type = event
|games = iii vc sa
|games = iii vc sa
|desc = a ped enters a vehicle.<br>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.
|desc = a ped enters a vehicle.<br>The event is invoked once per vehicle enter at the earliest stage of all stages involved for entering the vehicle. Stages may include: moving towards the vehicle, opening a vehicle door, the vehicle entering animation, alignment, etc.<br>If the vehicle enter occurrence is blocked, the event is still triggered. (For example, if the ped can't reach any doors of a car.)
|arg1 = Ped ped The ped that has started moving to enter a vehicle.
|arg1 = Ped ped The ped that has started moving to enter a vehicle.
|arg2 = Vehicle vehicle The vehicle that the ped is moving to.
|arg2 = Vehicle vehicle The vehicle that the ped is moving to.

Latest revision as of 04:35, 26 February 2024

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.
The event is invoked once per vehicle enter at the earliest stage of all stages involved for entering the vehicle. Stages may include: moving towards the vehicle, opening a vehicle door, the vehicle entering animation, alignment, etc.
If the vehicle enter occurrence is blocked, the event is still triggered. (For example, if the ped can't reach any doors of a car.).

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

icon-iii.png icon-vc.png icon-sa.png OnPedCrouch
icon-iii.png icon-vc.png icon-sa.png OnPedEnterVehicle
icon-iii.png icon-vc.png icon-sa.png OnPedExitVehicle
icon-iii.png icon-vc.png icon-sa.png OnPedFall
icon-iii.png icon-vc.png icon-sa.png OnPedJump
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPedSpawn
icon-iii.png icon-vc.png icon-sa.png OnPedUncrouch
icon-iii.png icon-vc.png OnPedWasted


Client Related

icon-iii.png icon-vc.png icon-sa.png OnPedBusted
icon-iii.png icon-vc.png icon-sa.png OnPedChangeWeapon
icon-iii.png icon-vc.png icon-sa.png OnPedCrouch
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPedDead
icon-vc.png OnPedEnteredVehicle
icon-iii.png icon-vc.png icon-sa.png OnPedEnteringVehicle
icon-iii.png icon-vc.png icon-sa.png OnPedEnterVehicle
icon-vc.png OnPedExitedVehicle
icon-iii.png icon-vc.png icon-sa.png OnPedExitingVehicle
icon-iii.png icon-vc.png icon-sa.png OnPedExitVehicle
icon-iii.png icon-vc.png icon-sa.png OnPedFall
icon-iii.png icon-vc.png icon-sa.png OnPedFireProjectile
icon-iii.png icon-vc.png icon-sa.png OnPedInflictDamage
icon-iii.png icon-vc.png icon-sa.png OnPedJump
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPedSpawn
icon-vc.png OnPedStartClosingVehicleDoor
icon-iii.png icon-vc.png icon-sa.png OnPedStartFightAttack
icon-iii.png icon-vc.png icon-sa.png OnPedStartFightDefend
icon-vc.png OnPedStartOpeningVehicleDoor
icon-iii.png icon-vc.png icon-sa.png OnPedUncrouch
icon-iii.png icon-vc.png icon-sa.png OnPedUseWeapon
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPedWasted