@citizenfx/client 2.0.10367-1 → 2.0.10543-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 +41 -5
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -305,6 +305,20 @@ declare function AddCamSplineNodeUsingGameplayFrame(cam: number, p1: number, p2:
|
|
|
305
305
|
*/
|
|
306
306
|
declare function N_0x609278246a29ca34(cam: number, p1: number, p2: number): void;
|
|
307
307
|
|
|
308
|
+
/**
|
|
309
|
+
* Adds a listener for Console Variable changes.
|
|
310
|
+
* The function called expects to match the following signature:
|
|
311
|
+
* ```ts
|
|
312
|
+
* function ConVarChangeListener(conVarName: string, reserved: any);
|
|
313
|
+
* ```
|
|
314
|
+
* * **conVarName**: The ConVar that changed.
|
|
315
|
+
* * **reserved**: Currently unused.
|
|
316
|
+
* @param conVarFilter The Console Variable to listen for, this can be a pattern like "test:\*", or null for any
|
|
317
|
+
* @param handler The handler function.
|
|
318
|
+
* @return A cookie to remove the change handler.
|
|
319
|
+
*/
|
|
320
|
+
declare function AddConvarChangeListener(conVarFilter: string, handler: Function): number;
|
|
321
|
+
|
|
308
322
|
/**
|
|
309
323
|
* ADD_COVER_BLOCKING_AREA
|
|
310
324
|
*/
|
|
@@ -10906,6 +10920,22 @@ declare function GetControlValue(padIndex: number, control: number): number;
|
|
|
10906
10920
|
*/
|
|
10907
10921
|
declare function GetConvar(varName: string, default_: string): string;
|
|
10908
10922
|
|
|
10923
|
+
/**
|
|
10924
|
+
* Can be used to get a console variable casted back to `bool`.
|
|
10925
|
+
* @param varName The console variable to look up.
|
|
10926
|
+
* @param defaultValue The default value to set if none is found.
|
|
10927
|
+
* @return Returns the convar value if it can be found, otherwise it returns the assigned `default`.
|
|
10928
|
+
*/
|
|
10929
|
+
declare function GetConvarBool(varName: string, defaultValue: boolean): boolean;
|
|
10930
|
+
|
|
10931
|
+
/**
|
|
10932
|
+
* This will have floating point inaccuracy.
|
|
10933
|
+
* @param varName The console variable to get
|
|
10934
|
+
* @param defaultValue The default value to set, if none are found.
|
|
10935
|
+
* @return Returns the value set in varName, or `default` if none are specified
|
|
10936
|
+
*/
|
|
10937
|
+
declare function GetConvarFloat(varName: string, defaultValue: number): number;
|
|
10938
|
+
|
|
10909
10939
|
/**
|
|
10910
10940
|
* Can be used to get a console variable casted back to `int` (an integer value).
|
|
10911
10941
|
* @param varName The console variable to look up.
|
|
@@ -15257,24 +15287,24 @@ declare function GetPedEventData(ped: number, eventType: number, outData?: numbe
|
|
|
15257
15287
|
declare function GetPedExtractedDisplacement(ped: number, worldSpace: boolean): number[];
|
|
15258
15288
|
|
|
15259
15289
|
/**
|
|
15260
|
-
* A getter for [
|
|
15290
|
+
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
15261
15291
|
* @param ped The target ped
|
|
15262
15292
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
15263
15293
|
*/
|
|
15264
15294
|
declare function GetPedEyeColor(ped: number): number;
|
|
15265
|
-
|
|
15266
15295
|
/**
|
|
15267
15296
|
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
15268
15297
|
* @param ped The target ped
|
|
15269
15298
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
15270
15299
|
*/
|
|
15271
|
-
declare function
|
|
15300
|
+
declare function N_0x76bba2cee66d47e9(ped: number): number;
|
|
15301
|
+
|
|
15272
15302
|
/**
|
|
15273
|
-
* A getter for [
|
|
15303
|
+
* A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
|
|
15274
15304
|
* @param ped The target ped
|
|
15275
15305
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
15276
15306
|
*/
|
|
15277
|
-
declare function
|
|
15307
|
+
declare function GetPedEyeColor(ped: number): number;
|
|
15278
15308
|
|
|
15279
15309
|
/**
|
|
15280
15310
|
* A getter for [\_SET_PED_FACE_FEATURE](#\_0x71A5C1DBA060049E). Returns 0.0 if fails to get.
|
|
@@ -40730,6 +40760,12 @@ declare function RemoveBlip(blip: number): void;
|
|
|
40730
40760
|
*/
|
|
40731
40761
|
declare function RemoveClipSet(clipSet: string): void;
|
|
40732
40762
|
|
|
40763
|
+
/**
|
|
40764
|
+
* REMOVE_CONVAR_CHANGE_LISTENER
|
|
40765
|
+
* @param cookie The cookie returned from [ADD_CONVAR_CHANGE_LISTENER](#\_0xAB7F7241)
|
|
40766
|
+
*/
|
|
40767
|
+
declare function RemoveConvarChangeListener(cookie: number): void;
|
|
40768
|
+
|
|
40733
40769
|
/**
|
|
40734
40770
|
* REMOVE_COVER_POINT
|
|
40735
40771
|
*/
|