Interfaces
IVehicleStorageService
A service for managing and accessing vehicle data.
Methods
TryGetVehicle
Tries to get a FVehicle by its network ID.
Parameters
| Name | Type | Description |
|---|---|---|
| networkId | int | The vehicle's network ID. |
Returns
| Name | Type |
|---|---|
| FVehicle | The vehicle or null. |
GetVehicleData
Gets the VehicleData of the given FVehicle.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | FVehicle | The vehicle. |
Returns
| Name | Type |
|---|---|
| VehicleData | The 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>