@citizenfx/client 2.0.5797-1 → 2.0.5800-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.
- package/natives_universal.d.ts +32 -0
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -6924,6 +6924,16 @@ declare function N_0x7cd934010e115c2c(ped: number): number;
|
|
|
6924
6924
|
*/
|
|
6925
6925
|
declare function GetAllRopes(): any;
|
|
6926
6926
|
|
|
6927
|
+
/**
|
|
6928
|
+
* Returns all registered vehicle model names, including non-dlc vehicles and custom vehicles in no particular order.
|
|
6929
|
+
* **Example output**
|
|
6930
|
+
* ```
|
|
6931
|
+
* ["dubsta", "dubsta2", "dubsta3", "myverycoolcar", "sultan", "sultanrs", ...]
|
|
6932
|
+
* ```
|
|
6933
|
+
* This native will not return vehicles that are unregistered (i.e from a resource being stopped) during runtime.
|
|
6934
|
+
*/
|
|
6935
|
+
declare function GetAllVehicleModels(): any;
|
|
6936
|
+
|
|
6927
6937
|
declare function GetAllVehicles(vehArray: number): [number, number];
|
|
6928
6938
|
|
|
6929
6939
|
declare function GetAllocatedStackSize(): number;
|
|
@@ -7493,8 +7503,20 @@ declare function N_0x5b84d09cec5209c5(padIndex: number, control: number): number
|
|
|
7493
7503
|
|
|
7494
7504
|
declare function GetControlValue(padIndex: number, control: number): number;
|
|
7495
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
|
+
*/
|
|
7496
7512
|
declare function GetConvar(varName: string, default_: string): string;
|
|
7497
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
|
+
*/
|
|
7498
7520
|
declare function GetConvarInt(varName: string, default_: number): number;
|
|
7499
7521
|
|
|
7500
7522
|
/**
|
|
@@ -13547,6 +13569,16 @@ declare function GetWindDirection(): number[];
|
|
|
13547
13569
|
|
|
13548
13570
|
declare function GetWindSpeed(): number;
|
|
13549
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
|
+
|
|
13550
13582
|
/**
|
|
13551
13583
|
* Returns the coordinates of an entity-bone.
|
|
13552
13584
|
*/
|