FivePD API
EntityWrappers/VehicleWrapper

FVehicle

Asd.

Methods

FromVehicle

Created an FVehicle wrapper from the specified Vehicle.

Parameters

NameTypeDescription
vehicleVehicleThe instance to use.

Returns

NameType
static FVehicleThe FVehicle.

FromNetId

Created an FVehicle wrapper from the specified Vehicle.

Parameters

NameTypeDescription
networkIdintThe network ID of the vehicle.

Returns

NameType
static FVehicleThe FVehicle.

GetStateKey

GetStateBag

Properties

NetworkId

Gets the vehicle's network identifier.

Type: int

VehicleDataId

Gets the PedHistory id.

Type: int

OwnerNetworkId

Gets the network identifier of the vehicle's owner ped.

Type: int

Stopped

Gets the vehicle's observable with a value indicating if the vehicle has been stopped.

Type: FStateBagObservable<bool>

HasGeneratedData

Gets the vehicle's observable with a value indicating if the vehicle has generated data.

Type: FStateBagObservable<bool>

Properties

Gets the properties of the FVehicle.

Type: FVehicleProperties

GetUnderlyingVehicle

Gets the underlying Vehicle.

Type: Vehicle

Owner

Gets the owner of the FVehicle.

Type: Player