mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
feat(client/vehicleproperties): add fixVehicle parameter (#392)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user