@citizenfx/client 2.0.5798-1 → 2.0.5801-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.
@@ -7503,8 +7503,20 @@ declare function N_0x5b84d09cec5209c5(padIndex: number, control: number): number
7503
7503
 
7504
7504
  declare function GetControlValue(padIndex: number, control: number): number;
7505
7505
 
7506
+ /**
7507
+ * Can be used to get a console variable of type `char*`, for example a string.
7508
+ * @param varName The console variable to look up.
7509
+ * @param default_ The default value to set if none is found.
7510
+ * @return Returns the convar value if it can be found, otherwise it returns the assigned `default`.
7511
+ */
7506
7512
  declare function GetConvar(varName: string, default_: string): string;
7507
7513
 
7514
+ /**
7515
+ * Can be used to get a console variable casted back to `int` (an integer value).
7516
+ * @param varName The console variable to look up.
7517
+ * @param default_ The default value to set if none is found (variable not set using [SET_CONVAR](#\_0x341B16D2), or not accessible).
7518
+ * @return Returns the convar value if it can be found, otherwise it returns the assigned `default`.
7519
+ */
7508
7520
  declare function GetConvarInt(varName: string, default_: number): number;
7509
7521
 
7510
7522
  /**
@@ -10454,24 +10466,24 @@ declare function GetPedEventData(ped: number, eventType: number, outData?: numbe
10454
10466
  declare function GetPedExtractedDisplacement(ped: number, worldSpace: boolean): number[];
10455
10467
 
10456
10468
  /**
10457
- * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
10469
+ * A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
10458
10470
  * @param ped The target ped
10459
10471
  * @return Returns ped's eye colour, or -1 if fails to get.
10460
10472
  */
10461
10473
  declare function GetPedEyeColor(ped: number): number;
10474
+
10462
10475
  /**
10463
10476
  * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
10464
10477
  * @param ped The target ped
10465
10478
  * @return Returns ped's eye colour, or -1 if fails to get.
10466
10479
  */
10467
- declare function N_0x76bba2cee66d47e9(ped: number): number;
10468
-
10480
+ declare function GetPedEyeColor(ped: number): number;
10469
10481
  /**
10470
- * A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
10482
+ * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
10471
10483
  * @param ped The target ped
10472
10484
  * @return Returns ped's eye colour, or -1 if fails to get.
10473
10485
  */
10474
- declare function GetPedEyeColor(ped: number): number;
10486
+ declare function N_0x76bba2cee66d47e9(ped: number): number;
10475
10487
 
10476
10488
  /**
10477
10489
  * A getter for [\_SET_PED_FACE_FEATURE](#\_0x71A5C1DBA060049E). Returns 0.0 if fails to get.
@@ -13557,6 +13569,16 @@ declare function GetWindDirection(): number[];
13557
13569
 
13558
13570
  declare function GetWindSpeed(): number;
13559
13571
 
13572
+ /**
13573
+ * Converts a screen coordinate into its relative world coordinate.
13574
+ * @param screenX A screen horizontal axis coordinate (0.0 - 1.0).
13575
+ * @param screenY A screen vertical axis coordinate (0.0 - 1.0).
13576
+ * @param worldVector The world coord vector pointer.
13577
+ * @param normalVector The screen normal vector pointer.
13578
+ * @return A Vector3 representing the world coordinates relative to the specified screen coordinates and a screen plane normal Vector3 (normalised).
13579
+ */
13580
+ declare function GetWorldCoordFromScreenCoord(screenX: number, screenY: number): [number[], number[]];
13581
+
13560
13582
  /**
13561
13583
  * Returns the coordinates of an entity-bone.
13562
13584
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.5798-1",
3
+ "version": "2.0.5801-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {