Vehicle::isWheelBrokenOff

From RAGE Multiplayer Wiki
Revision as of 18:02, 23 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Check whether the given wheel id of the vehicle is broken or not. === Required Params === *'''wheelId:''' {{RageType|Number}} === Return Value === *'''void''' {{RageType|void}} ==Syntax== <pre> vehicle.isWheelBrokenOff(wheelId); </pre> ==Example== {{ClientsideCode| <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.atRemoteId(0); if (!vehicle || !mp.vehicles.exists(vehicle)) return; mp.console.logInfo(`Wheel id 1 is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

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'}`)


See also