Vehicle::isWheelBrokenOff
Not available on SYNC MP yet
This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.
JavaScript
Check whether the given wheel id of the vehicle is broken or not.
Required Params
- wheelId: Number
Return Value
- void void
Syntax
vehicle.isWheelBrokenOff(wheelId);
Example
Client-Side
const vehicle = mp.vehicles.atRemoteId(0);
if (!vehicle || !mp.vehicles.exists(vehicle)) return;
mp.console.logInfo(`Wheel id 1 is ${vehicle.isWheelBrokenOff(1) ? 'broken' : 'not broken'}`)