fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Client / VehicleWheel

Class: VehicleWheel

Represents a wheel of a vehicle and provides methods to interact with its state.

Constructors

new VehicleWheel()

new VehicleWheel(_owner, _index): VehicleWheel

Parameters

_owner: Vehicle

_index: number

Returns

VehicleWheel

Defined in

client/models/VehicleWheel.ts:7

Accessors

Health

get Health(): number

set Health(value): void

Parameters

value: number

Returns

number

Defined in

client/models/VehicleWheel.ts:28


Index

get Index(): number

set Index(index): void

Parameters

index: number

Returns

number

Defined in

client/models/VehicleWheel.ts:16


Owner

get Owner(): Vehicle

Returns

Vehicle

Defined in

client/models/VehicleWheel.ts:12


WearMultiplier

get WearMultiplier(): number

Returns

number

Defined in

client/models/VehicleWheel.ts:36

Methods

burst()

burst(): void

Causes the vehicle tyre to burst for the vehicle associated with the owner.

This method utilizes SetVehicleTyreBurst to simulate a tyre burst effect. The tyre index and bursting properties are specified in the parameters of the method.

Returns

void

No return value.

Defined in

client/models/VehicleWheel.ts:58


exists()

exists(): boolean

Returns

boolean

Defined in

client/models/VehicleWheel.ts:24


fix()

fix(): void

Repairs a specific vehicle tire associated with the vehicle owner. This method ensures that the tire at the provided index of the owner’s vehicle is fixed.

Returns

void

Does not return any value.

Defined in

client/models/VehicleWheel.ts:68


isBurstable()

isBurstable(completely): boolean

Determines if the vehicle’s tire is burst.

Parameters

completely: boolean

Flag indicating if the check should consider complete burst.

Returns

boolean

Defined in

client/models/VehicleWheel.ts:46