Vehicle::breakOffBumper
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
Breaks off front or back bumper of the vehicle.
Required Params
- front: Boolean
- deleteMapObject: Boolean
Return Value
- void void
Syntax
vehicle.breakOffBumper(front, deleteMapObject);
Example
Client-Side
const vehicle = mp.vehicles.atRemoteId(0);
if (!vehicle || !mp.vehicles.exists(vehicle)) return;
vehicle.breakOffBumper(true, false); //break vehicle's front bumper and prevent it from being created as world object.