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

This commit is contained in:
Jellyton authored and GitHub committed 2023-08-15 10:40:35 +10:00
1 parent a97b9ba054
commit 0c072ef4f7
2 files changed
+20 -11

No files matched your search

@@ -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);