@citizenfx/client 2.0.6086-1 → 2.0.6093-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.
@@ -3235,6 +3235,20 @@ declare function CreateCheckpoint(_type: number, posX1: number, posY1: number, p
3235
3235
 
3236
3236
  declare function CreateCinematicShot(p0: number, p1: number, p2: number, entity: number): void;
3237
3237
 
3238
+ /**
3239
+ * Creates a volume where water effects do not apply.
3240
+ * Useful for preventing water collisions from flooding areas underneath them.
3241
+ * This has no effect on waterquads, only water created from drawables and collisions.
3242
+ * Don't create volumes when your local ped is swimming (e.g. use IS_PED_SWIMMING in your scripts before you call this)
3243
+ * @param xMin The min X component of the AABB volume where water does not affect the player.
3244
+ * @param yMin The min Y component for the AABB volume.
3245
+ * @param zMin The min Z component for the AABB volume.
3246
+ * @param xMax The max X component for the AABB volume.
3247
+ * @param yMax The max Y component for the AABB volume.
3248
+ * @param zMax The max Z component for the AABB volume.
3249
+ */
3250
+ declare function CreateDryVolume(xMin: number, yMin: number, zMin: number, xMax: number, yMax: number, zMax: number): number;
3251
+
3238
3252
  /**
3239
3253
  * Creates a DUI browser. This can be used to draw on a runtime texture using CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE.
3240
3254
  * @param url The initial URL to load in the browser.
@@ -3631,10 +3645,10 @@ declare function CreateRuntimeTexture(txd: number, txn: string, width: number, h
3631
3645
  declare function CreateRuntimeTextureFromDuiHandle(txd: number, txn: string, duiHandle: string): number;
3632
3646
 
3633
3647
  /**
3634
- * Creates a runtime texture from the specified file in the current resource.
3648
+ * Creates a runtime texture from the specified file in the current resource or a base64 data URL.
3635
3649
  * @param txd A handle to the runtime TXD to create the runtime texture in.
3636
3650
  * @param txn The name for the texture in the runtime texture dictionary.
3637
- * @param fileName The file name of an image to load. This should preferably be a PNG, and has to be specified as a `file` in the resource manifest.
3651
+ * @param fileName The file name of an image to load or a base64 data URL. This should preferably be a PNG, and has to be specified as a `file` in the resource manifest.
3638
3652
  * @return A runtime texture handle.
3639
3653
  */
3640
3654
  declare function CreateRuntimeTextureFromImage(txd: number, txn: string, fileName: string): number;
@@ -10437,6 +10451,18 @@ declare function GetPedDecorationZoneFromHashes(collection: string | number, ove
10437
10451
  */
10438
10452
  declare function GetTattooZone(collection: string | number, overlay: string | number): number;
10439
10453
 
10454
+ /**
10455
+ * Returns a list of decorations applied to a ped.
10456
+ * The data returned adheres to the following layout:
10457
+ * ```
10458
+ * [ [ collectionHash1, overlayHash1 ], ..., [c ollectionHashN, overlayHashN ] ]
10459
+ * ```
10460
+ * This command will return undefined data if invoked on a remote player ped.
10461
+ * @param ped The ped you want to retrieve data for.
10462
+ * @return An object containing a list of applied decorations.
10463
+ */
10464
+ declare function GetPedDecorations(ped: number): any;
10465
+
10440
10466
  declare function GetPedDecorationsState(ped: number): number;
10441
10467
  declare function N_0x71eab450d86954a1(ped: number): number;
10442
10468
 
@@ -10506,24 +10532,24 @@ declare function GetPedEventData(ped: number, eventType: number, outData?: numbe
10506
10532
  declare function GetPedExtractedDisplacement(ped: number, worldSpace: boolean): number[];
10507
10533
 
10508
10534
  /**
10509
- * A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
10535
+ * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
10510
10536
  * @param ped The target ped
10511
10537
  * @return Returns ped's eye colour, or -1 if fails to get.
10512
10538
  */
10513
10539
  declare function GetPedEyeColor(ped: number): number;
10514
-
10515
10540
  /**
10516
10541
  * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
10517
10542
  * @param ped The target ped
10518
10543
  * @return Returns ped's eye colour, or -1 if fails to get.
10519
10544
  */
10520
- declare function GetPedEyeColor(ped: number): number;
10545
+ declare function N_0x76bba2cee66d47e9(ped: number): number;
10546
+
10521
10547
  /**
10522
- * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
10548
+ * A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
10523
10549
  * @param ped The target ped
10524
10550
  * @return Returns ped's eye colour, or -1 if fails to get.
10525
10551
  */
10526
- declare function N_0x76bba2cee66d47e9(ped: number): number;
10552
+ declare function GetPedEyeColor(ped: number): number;
10527
10553
 
10528
10554
  /**
10529
10555
  * A getter for [\_SET_PED_FACE_FEATURE](#\_0x71A5C1DBA060049E). Returns 0.0 if fails to get.
@@ -10725,6 +10751,8 @@ declare function GetPedMaxHealth(ped: number): number;
10725
10751
 
10726
10752
  declare function GetPedMoney(ped: number): number;
10727
10753
 
10754
+ declare function GetPedMovementClipset(ped: number): number;
10755
+
10728
10756
  /**
10729
10757
  * Console/PC structure definitions and example: pastebin.com/SsFej963
10730
10758
  * For FiveM/Cfx.Re use-cases refer to: [`GET_GAME_POOL`](#\_0x2B9D4F50).
@@ -12524,11 +12552,42 @@ declare function GetVehicleCustomPrimaryColour(vehicle: number): [number, number
12524
12552
 
12525
12553
  declare function GetVehicleCustomSecondaryColour(vehicle: number): [number, number, number];
12526
12554
 
12555
+ declare function GetVehicleDashboardBoost(): number;
12556
+
12527
12557
  declare function GetVehicleDashboardColor(vehicle: number, color?: number): number;
12528
12558
  declare function GetVehicleDashboardColour(vehicle: number, color?: number): number;
12529
12559
 
12560
+ declare function GetVehicleDashboardFuel(): number;
12561
+
12562
+ /**
12563
+ * Gets the state of the player vehicle's dashboard lights as a bit set
12564
+ * indicator_left = 1
12565
+ * indicator_right = 2
12566
+ * handbrakeLight = 4
12567
+ * engineLight = 8
12568
+ * ABSLight = 16
12569
+ * gasLight = 32
12570
+ * oilLight = 64
12571
+ * headlights = 128
12572
+ * highBeam = 256
12573
+ * batteryLight = 512
12574
+ */
12575
+ declare function GetVehicleDashboardLights(): number;
12576
+
12577
+ declare function GetVehicleDashboardOilPressure(): number;
12578
+
12579
+ declare function GetVehicleDashboardOilTemp(): number;
12580
+
12581
+ declare function GetVehicleDashboardRpm(): number;
12582
+
12530
12583
  declare function GetVehicleDashboardSpeed(vehicle: number): number;
12531
12584
 
12585
+ declare function GetVehicleDashboardTemp(): number;
12586
+
12587
+ declare function GetVehicleDashboardVacuum(): number;
12588
+
12589
+ declare function GetVehicleDashboardWaterTemp(): number;
12590
+
12532
12591
  /**
12533
12592
  * Returns hash of default vehicle horn
12534
12593
  * Hash is stored in audVehicleAudioEntity
@@ -26938,6 +26997,13 @@ declare function RemoveDispatchSpawnBlockingArea(p0: number): void;
26938
26997
  */
26939
26998
  declare function RemoveDoorFromSystem(doorHash: string | number): void;
26940
26999
 
27000
+ /**
27001
+ * Removes a dry volume from the game session.
27002
+ * See CREATE_DRY_VOLUME for more info
27003
+ * @param handle The handle of the dry volume that needs to be removed.
27004
+ */
27005
+ declare function RemoveDryVolume(handle: number): void;
27006
+
26941
27007
  declare function RemoveEntityFromAudioMixGroup(entity: number, p1: number): void;
26942
27008
  declare function N_0x18eb48cfc41f2ea0(entity: number, p1: number): void;
26943
27009
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.6086-1",
3
+ "version": "2.0.6093-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {