FivePD API
Interfaces

IVehicleStorageService

A service for managing and accessing vehicle data.

Methods

TryGetVehicle

Tries to get a FVehicle by its network ID.

Parameters

NameTypeDescription
networkIdintThe vehicle's network ID.

Returns

NameType
FVehicleThe vehicle or null.

GetVehicleData

Gets the VehicleData of the given FVehicle.

Parameters

NameTypeDescription
vehicleFVehicleThe vehicle.

Returns

NameType
VehicleDataThe VehicleHistory of the vehicle.

Properties

Vehicles

Gets a readonly dictionary of all vehicles on the server.

Type: ReadOnlyDictionary<int, FVehicle>

InternalVehicles

Type: ConcurrentDictionary<int, FVehicle>