mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-21 10:38:35 +00:00
feat(client/vehicleproperties): add fixVehicle parameter (#392)
This commit is contained in:
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);
|
||||
Reference in new issue
Block a user