@citizenfx/client 2.0.6335-1 → 2.0.6342-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.
@@ -7170,6 +7170,20 @@ declare function N_0xc1f981a6f74f0c23(vehicle: number, p1: boolean): void;
7170
7170
  declare function GetBoatBoomPositionRatio_3(vehicle: number, p1: boolean): void;
7171
7171
  declare function N_0x0f3b4d4e43177236(vehicle: number, p1: boolean): void;
7172
7172
 
7173
+ /**
7174
+ * This native returns the index of a calming quad if the given point is inside its bounds.
7175
+ * @param x The X coordinate
7176
+ * @param y The Y coordinate
7177
+ * @return The calming quad index at the given position. Returns -1 if there isn't any there.
7178
+ */
7179
+ declare function GetCalmingQuadAtCoords(x: number, y: number): number;
7180
+
7181
+ declare function GetCalmingQuadBounds(waterQuad: number): [boolean, number, number, number, number];
7182
+
7183
+ declare function GetCalmingQuadCount(): number;
7184
+
7185
+ declare function GetCalmingQuadDampening(waterQuad: number, calmingQuadDampening?: number): [boolean, number];
7186
+
7173
7187
  /**
7174
7188
  * Enumerated type defined in camControlHelperMetadataViewModes:
7175
7189
  * ```cpp
@@ -13535,6 +13549,71 @@ declare function GetWaterHeight(x: number, y: number, z: number, height?: number
13535
13549
 
13536
13550
  declare function GetWaterHeightNoWaves(x: number, y: number, z: number, height?: number): [boolean, number];
13537
13551
 
13552
+ declare function GetWaterQuadAlpha(waterQuad: number): [boolean, number, number, number, number];
13553
+
13554
+ /**
13555
+ * This native returns the index of a water quad if the given point is inside its bounds.
13556
+ * *If you also want to check for water level, check out [`GetWaterQuadAtCoords_3d`](#\_0xF8E03DB8)*
13557
+ * @param x The X coordinate
13558
+ * @param y The Y coordinate
13559
+ * @return The water quad index at the given position. Returns -1 if there isn't any there.
13560
+ */
13561
+ declare function GetWaterQuadAtCoords(x: number, y: number): number;
13562
+
13563
+ /**
13564
+ * This alternative implementation of [`GetWaterQuadAtCoords`](#\_0x17321452) also checks the height of the water level.
13565
+ * @param x The X coordinate
13566
+ * @param y The Y coordinate
13567
+ * @param z The water level inside the water quad
13568
+ * @return The water quad index at the given position. Returns -1 if there isn't any there. Also returns -1 if the given point is above the water level.
13569
+ */
13570
+ declare function GetWaterQuadAtCoords_3d(x: number, y: number, z: number): number;
13571
+
13572
+ declare function GetWaterQuadBounds(waterQuad: number): [boolean, number, number, number, number];
13573
+
13574
+ declare function GetWaterQuadCount(): number;
13575
+
13576
+ declare function GetWaterQuadHasLimitedDepth(waterQuad: number, hasLimitedDepth?: number): [boolean, number];
13577
+
13578
+ declare function GetWaterQuadIsInvisible(waterQuad: number, isInvisible?: number): [boolean, number];
13579
+
13580
+ /**
13581
+ * *level is defined as "z" in water.xml*
13582
+ * @param waterQuad The returned water quad level
13583
+ * @return Returns true on success. Level is undefined on failure
13584
+ */
13585
+ declare function GetWaterQuadLevel(waterQuad: number, waterQuadLevel?: number): [boolean, number];
13586
+
13587
+ declare function GetWaterQuadNoStencil(waterQuad: number, noStencil?: number): [boolean, number];
13588
+
13589
+ /**
13590
+ * Valid type definitions:
13591
+ * * **0** Square
13592
+ * * **1** Right triangle where the 90 degree angle is at maxX, minY
13593
+ * * **2** Right triangle where the 90 degree angle is at minX, minY
13594
+ * * **3** Right triangle where the 90 degree angle is at minX, maxY
13595
+ * * **4** Right triangle where the 90 degree angle is at maxY, maxY
13596
+ * @param waterQuad The water quad index
13597
+ * @return Returns true on success. Type is undefined on failure
13598
+ */
13599
+ declare function GetWaterQuadType(waterQuad: number, waterType?: number): [boolean, number];
13600
+
13601
+ declare function GetWaveQuadAmplitude(waveQuad: number, waveQuadAmplitude?: number): [boolean, number];
13602
+
13603
+ /**
13604
+ * This native returns the index of a wave quad if the given point is inside its bounds.
13605
+ * @param x The X coordinate
13606
+ * @param y The Y coordinate
13607
+ * @return The wave quad index at the given position. Returns -1 if there isn't any there.
13608
+ */
13609
+ declare function GetWaveQuadAtCoords(x: number, y: number): number;
13610
+
13611
+ declare function GetWaveQuadBounds(waveQuad: number): [boolean, number, number, number, number];
13612
+
13613
+ declare function GetWaveQuadCount(): number;
13614
+
13615
+ declare function GetWaveQuadDirection(waveQuad: number): [boolean, number, number];
13616
+
13538
13617
  declare function GetWaypointBlipEnumId(): number;
13539
13618
  declare function GetBlipInfoIdIterator(): number;
13540
13619
 
@@ -16955,6 +17034,14 @@ declare function LoadStream(streamName: string, soundSet: string): boolean;
16955
17034
  */
16956
17035
  declare function LoadStreamWithStartOffset(streamName: string, startOffset: number, soundSet: string): boolean;
16957
17036
 
17037
+ /**
17038
+ * Define the xml in a resources fxmanifest, under the file(s) section.
17039
+ * @param resourceName The name of the resource containing your modified water definition
17040
+ * @param fileName The name of the file
17041
+ * @return Returns true on success.
17042
+ */
17043
+ declare function LoadWaterFromPath(resourceName: string, fileName: string): boolean;
17044
+
16958
17045
  declare function LoadingscreenGetLoadFreemode(): boolean;
16959
17046
  declare function N_0xef7d17bc6c85264c(): boolean;
16960
17047
 
@@ -27982,6 +28069,11 @@ declare function ResetVehicleWheels(vehicle: number, toggle: boolean): void;
27982
28069
 
27983
28070
  declare function ResetWantedLevelDifficulty(player: number): void;
27984
28071
 
28072
+ /**
28073
+ * Resets the water to the games default water.xml.
28074
+ */
28075
+ declare function ResetWater(): void;
28076
+
27985
28077
  /**
27986
28078
  * NativeDB Introduced: v323
27987
28079
  */
@@ -29265,6 +29357,10 @@ declare function SetBoatSinksWhenWrecked(vehicle: number, toggle: boolean): void
29265
29357
  declare function N_0x8f719973e1445ba2(vehicle: number, toggle: boolean): void;
29266
29358
  declare function SetBoatExplodesOnWreckedAction(vehicle: number, toggle: boolean): void;
29267
29359
 
29360
+ declare function SetCalmingQuadBounds(waterQuad: number, minX: number, minY: number, maxX: number, maxY: number): boolean;
29361
+
29362
+ declare function SetCalmingQuadDampening(calmingQuad: number, dampening: number): boolean;
29363
+
29268
29364
  /**
29269
29365
  * Set camera as active/inactive.
29270
29366
  */
@@ -37691,6 +37787,66 @@ declare function SetWarningMessage_3(entryHeader: string, entryLine1: string, in
37691
37787
  */
37692
37788
  declare function SetWarningMessageWithHeaderUnk(entryHeader: string, entryLine1: string, flags: number, entryLine2: string, p4: boolean, p5: number, showBg: boolean, p9: number, p10: number): [number, number];
37693
37789
 
37790
+ declare function SetWaterQuadAlpha(waterQuad: number, a0: number, a1: number, a2: number, a3: number): boolean;
37791
+
37792
+ /**
37793
+ * This native allows you to update the bounds of a specified water quad index.
37794
+ * @param waterQuad The water quad index
37795
+ * @param minX The minX coordinate
37796
+ * @param minY The minY coordinate
37797
+ * @param maxX The maxX coordinate
37798
+ * @param maxY The maxY coordinate
37799
+ * @return Returns true on success.
37800
+ */
37801
+ declare function SetWaterQuadBounds(waterQuad: number, minX: number, minY: number, maxX: number, maxY: number): boolean;
37802
+
37803
+ declare function SetWaterQuadHasLimitedDepth(waterQuad: number, hasLimitedDepth: boolean): boolean;
37804
+
37805
+ declare function SetWaterQuadIsInvisible(waterQuad: number, isInvisible: boolean): boolean;
37806
+
37807
+ declare function SetWaterQuadLevel(waterQuad: number, level: number): boolean;
37808
+
37809
+ declare function SetWaterQuadNoStencil(waterQuad: number, noStencil: boolean): boolean;
37810
+
37811
+ /**
37812
+ * This native allows you to update the water quad type.
37813
+ * Valid type definitions:
37814
+ * * **0** Square
37815
+ * * **1** Right triangle where the 90 degree angle is at maxX, minY
37816
+ * * **2** Right triangle where the 90 degree angle is at minX, minY
37817
+ * * **3** Right triangle where the 90 degree angle is at minX, maxY
37818
+ * * **4** Right triangle where the 90 degree angle is at maxY, maxY
37819
+ * @param waterQuad The water quad index
37820
+ * @param type The water quad type
37821
+ * @return Returns true on success.
37822
+ */
37823
+ declare function SetWaterQuadType(waterQuad: number, _type: number): boolean;
37824
+
37825
+ declare function SetWaveQuadAmplitude(waveQuad: number, amplitude: number): boolean;
37826
+
37827
+ /**
37828
+ * This native allows you to update the bounds of a specified water quad index.
37829
+ * @param waveQuad The wave quad index
37830
+ * @param minX The minX coordinate
37831
+ * @param minY The minY coordinate
37832
+ * @param maxX The maxX coordinate
37833
+ * @param maxY The maxY coordinate
37834
+ * @return Returns true on success.
37835
+ */
37836
+ declare function SetWaveQuadBounds(waveQuad: number, minX: number, minY: number, maxX: number, maxY: number): boolean;
37837
+
37838
+ /**
37839
+ * directionX/Y should be constrained between -1.0 and 1.0
37840
+ * A positive value will create the wave starting at min and rolling towards max
37841
+ * A negative value will create the wave starting at max and rolling towards min
37842
+ * Applying both values allows you to make diagonal waves
37843
+ * @param waveQuad The wave quad index
37844
+ * @param directionX The minX coordinate
37845
+ * @param directionY The minY coordinate
37846
+ * @return Returns true on success.
37847
+ */
37848
+ declare function SetWaveQuadDirection(waveQuad: number, directionX: number, directionY: number): boolean;
37849
+
37694
37850
  /**
37695
37851
  * This native removes the current waypoint from the map.
37696
37852
  * Example:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.6335-1",
3
+ "version": "2.0.6342-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {