@nativewrappers/client
Version:
Javascript/Typescript wrapper for the FiveM natives
22 lines (21 loc) • 462 B
JavaScript
export class VehicleWheel {
constructor(owner, index) {
this._owner = owner;
this._index = index;
}
get Index() {
return this._index;
}
set Index(index) {
this._index = index;
}
get Vehicle() {
return this._owner;
}
burst() {
SetVehicleTyreBurst(this._owner.Handle, this.Index, true, 1000);
}
fix() {
SetVehicleTyreFixed(this._owner.Handle, this.Index);
}
}