feat(client/vehicleproperties): add fixVehicle parameter (#392)

This commit is contained in:
Jellyton
2023-08-14 17:40:35 -07:00
committed by GitHub
parent a97b9ba054
commit 0c072ef4f7
2 changed files with 20 additions and 11 deletions

View File

@@ -8,6 +8,8 @@ interface VehicleProperties {
fuelLevel: number;
oilLevel: number;
dirtLevel: number;
paintType1: number;
paintType2: number;
color1: number | [number, number, number];
color2: number | [number, number, number];
pearlescentColor: number;
@@ -90,5 +92,5 @@ interface VehicleProperties {
export const getVehicleProperties = (vehicle: number): VehicleProperties =>
exports.ox_lib.getVehicleProperties(vehicle);
export const setVehicleProperties = (vehicle: number, props: Partial<VehicleProperties>): boolean =>
export const setVehicleProperties = (vehicle: number, props: Partial<VehicleProperties>, fixVehicle?: boolean): boolean =>
exports.ox_lib.setVehicleProperties(vehicle, props);