PedGetNearbyVehicles Method

RAGE Plugin Hook Documentation

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

Gets Vehicles near this Ped.

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

public Vehicle[] GetNearbyVehicles(
	int maximumCount
)

Parameters

maximumCount
Type: SystemInt32
The maximum number of nearby Vehicles to get. Must be between 1 and 16.

Return Value

Type: Vehicle
An array of type Vehicle containing the nearby Vehicles.
Remarks

Several times a second, the game will collect Peds and Vehicle that are near a Ped. This method retrieves that list, and thus is faster than for example World.GetAllPeds().
See Also

Reference