OnPedEnterVehicle: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
|type = event | |type = event | ||
|games = iii vc sa | |games = iii vc sa | ||
|desc = a ped | |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
Online and Offline
Not Cancellable
onPedEnterVehicle(Event event, Ped ped, Vehicle vehicle, int seat)
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
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