PedIsInVehicle Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Gets whether this Ped is in the specified Vehicle.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public bool IsInVehicle(
	Vehicle vehicle,
	bool atGetIn
)

Parameters

vehicle
Type: RageVehicle
The Vehicle to check if this instance is inside.
atGetIn
Type: SystemBoolean
If true this method returns true if the ped is currently getting into the vehicle (that is, the ped has opened the door, and is about to get in); if false the method doesn't return true until the ped is sitting in the seat.

Return Value

Type: Boolean
If this instance is currently in the specified Vehicle, returns true; otherwise, returns false.
See Also

Reference