@citizenfx/client 2.0.8181-1 → 2.0.8201-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6930,6 +6930,14 @@ declare function DoesVehicleTyreExist(vehicle: number, tyreIndex: number): boole
6930
6930
  */
6931
6931
  declare function N_0x534e36d4db9ecc5d(vehicle: number, tyreIndex: number): boolean;
6932
6932
 
6933
+ /**
6934
+ * Checks whether the vehicle consumes fuel. The check is done based on petrol tank volume and vehicle type. Bicycles and vehicles with petrol tank volume equal to zero (only bicycles by default) do not use fuel. All other vehicles do.
6935
+ * You can customize petrol tank volume using [`SET_HANDLING_FLOAT`](#\_0x90DD01C)/[`SET_VEHICLE_HANDLING_FLOAT`](#\_0x488C86D2) natives with `fieldName` equal to `fPetrolTankVolume`.
6936
+ * @param vehicle The vehicle handle.
6937
+ * @return True if the vehicle uses fuel to move. False otherwise.
6938
+ */
6939
+ declare function DoesVehicleUseFuel(vehicle: number): boolean;
6940
+
6933
6941
  /**
6934
6942
  * DOES_WEAPON_TAKE_WEAPON_COMPONENT
6935
6943
  */
@@ -11789,6 +11797,18 @@ declare function GetFrameCount(): number;
11789
11797
  */
11790
11798
  declare function GetFrameTime(): number;
11791
11799
 
11800
+ /**
11801
+ * GET_FUEL_CONSUMPTION_RATE_MULTIPLIER
11802
+ * @return Current fuel consumption rate multiplier. 0 means that fuel is not consumed.
11803
+ */
11804
+ declare function GetFuelConsumptionRateMultiplier(): number;
11805
+
11806
+ /**
11807
+ * GET_FUEL_CONSUMPTION_STATE
11808
+ * @return True if fuel consumption is turned on. False otherwise.
11809
+ */
11810
+ declare function GetFuelConsumptionState(): boolean;
11811
+
11792
11812
  /**
11793
11813
  * Returns the internal build number of the current game being executed.
11794
11814
  * Possible values:
@@ -45291,6 +45311,21 @@ declare function SetFrontendActive(active: boolean): void;
45291
45311
  */
45292
45312
  declare function SetFrontendRadioActive(active: boolean): void;
45293
45313
 
45314
+ /**
45315
+ * Sets fuel consumption rate multiplier for all vehicles operated by a player. This is a way to slow down or speed up fuel consumption for all vehicles at a time. If 0 - it practically means that fuel will not be consumed. By default is set to 1.
45316
+ * When the multiplier is set to 1 a default 65 litre gas tank car with average fuel consumption can stay idle for ~16.67 hours or run with max RPM for ~2.5 hours.
45317
+ * To customize fuel consumption per vehicle / vehicle class use [`SET_HANDLING_FLOAT`](#\_0x90DD01C)/[`SET_VEHICLE_HANDLING_FLOAT`](#\_0x488C86D2) natives with `fieldName` equal to `fPetrolConsumptionRate`. By default it is set to 0.5 for all vehicles.
45318
+ * @param multiplier Global fuel consumption multiplier. If negative - 0 will be used instead.
45319
+ */
45320
+ declare function SetFuelConsumptionRateMultiplier(multiplier: number): void;
45321
+
45322
+ /**
45323
+ * Turns on and off fuel consumption in all vehicles operated by a player. NPC operated vehicles will not consume fuel to avoid traffic disruptions.
45324
+ * The default Gta5 behaviour is fuel consumption turned off.
45325
+ * @param state True to turn on. False to turn off.
45326
+ */
45327
+ declare function SetFuelConsumptionState(state: boolean): void;
45328
+
45294
45329
  /**
45295
45330
  * Make sure to call this from the correct thread if you're using multiple threads because all other threads except the one which is calling SET_GAME_PAUSED will be paused which means you will lose control and the game remains in paused mode until you exit GTA5.exe
45296
45331
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.8181-1",
3
+ "version": "2.0.8201-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {