a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Client / VehicleWheelCollection
The VehicleWheelCollection class manages a collection of wheels associated with a vehicle. It provides utility functions to retrieve, burst, fix, and check the existence of wheels.
new VehicleWheelCollection(
owner
):VehicleWheelCollection
• owner: Vehicle
client/models/VehicleWheelCollection.ts:11
get
Owner():Vehicle
client/models/VehicleWheelCollection.ts:13
get
VehicleWheels():Map
<number
,VehicleWheel
>
Map
<number
, VehicleWheel
>
client/models/VehicleWheelCollection.ts:17
burstAllWheels():
void
Bursts all the wheels of the vehicle.
Iterates through each wheel in the vehicle’s list of wheels and calls the burst method on them.
void
client/models/VehicleWheelCollection.ts:60
fixAllWheels():
void
Repairs all wheels of the vehicle by invoking the fix method on each wheel.
void
client/models/VehicleWheelCollection.ts:71
getAllVehicles():
VehicleWheel
[]
Retrieves an array of all vehicles that have wheels attached.
An array containing the vehicles with wheels attached.
client/models/VehicleWheelCollection.ts:40
getWheel(
index
):VehicleWheel
Retrieves the wheel of the vehicle at the specified index.
• index: VehicleWheelIndex
The index of the wheel to retrieve.
The wheel at the specified index.
client/models/VehicleWheelCollection.ts:28
hasWheel(
wheel
):boolean
Checks if the vehicle has a specified wheel.
• wheel: VehicleWheelIndex
The index of the wheel to check.
boolean