@citizenfx/client 2.0.6397-1 → 2.0.6398-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.
@@ -3971,6 +3971,14 @@ declare function ClonePedToTargetEx(ped: number, targetPed: number, p2: number):
3971
3971
  */
3972
3972
  declare function N_0x148b08c2d2acb884(ped: number, targetPed: number, p2: number): void;
3973
3973
 
3974
+ /**
3975
+ * CLONE_TIMECYCLE_MODIFIER
3976
+ * @param sourceModifierName The source timecycle name.
3977
+ * @param clonedModifierName The clone timecycle name, must be unique.
3978
+ * @return The cloned timecycle modifier index, or -1 if failed.
3979
+ */
3980
+ declare function CloneTimecycleModifier(sourceModifierName: string, clonedModifierName: string): number;
3981
+
3974
3982
  /**
3975
3983
  * CLOSE_BOMB_BAY_DOORS
3976
3984
  */
@@ -4833,6 +4841,13 @@ declare function CreateSynchronizedScene_2(x: number, y: number, z: number, radi
4833
4841
  */
4834
4842
  declare function N_0x62ec273d00187dca(x: number, y: number, z: number, radius: number, object: string | number): number;
4835
4843
 
4844
+ /**
4845
+ * Create a clean timecycle modifier. See [`SET_TIMECYCLE_MODIFIER_VAR`](#\_0x6E0A422B) to add variables.
4846
+ * @param modifierName The new timecycle name, must be unique.
4847
+ * @return The created timecycle modifier index, or -1 if failed.
4848
+ */
4849
+ declare function CreateTimecycleModifier(modifierName: string): number;
4850
+
4836
4851
  /**
4837
4852
  * Creates a tracked point: useful for checking the visibility of a 3D point on screen.
4838
4853
  * Tracked points must be manually managed and will not be destroyed on resource stop (they are not an instance of CScriptResource). See [`DESTROY_TRACKED_POINT`](#\_0xB25DC90BAD56CA42) and [onResourceStop](https://docs.fivem.net/docs/scripting-reference/events/list/onResourceStop/).
@@ -6485,6 +6500,14 @@ declare function DoesTextBlockExist(gxt: string): boolean;
6485
6500
  */
6486
6501
  declare function DoesTextLabelExist(gxt: string): boolean;
6487
6502
 
6503
+ /**
6504
+ * DOES_TIMECYCLE_MODIFIER_HAS_VAR
6505
+ * @param modifierName The name of timecycle modifier.
6506
+ * @param varName The name of timecycle variable.
6507
+ * @return Whether or not variable by name was found on the specified timecycle modifier.
6508
+ */
6509
+ declare function DoesTimecycleModifierHasVar(modifierName: string, varName: string): boolean;
6510
+
6488
6511
  /**
6489
6512
  * Returns true if the vehicle has the FLAG_ALLOWS_RAPPEL flag set.
6490
6513
  */
@@ -16160,6 +16183,12 @@ declare function GetTimeSincePlayerHitPed(player: number): number;
16160
16183
  */
16161
16184
  declare function GetTimeSincePlayerHitVehicle(player: number): number;
16162
16185
 
16186
+ /**
16187
+ * GET_TIMECYCLE_MODIFIER_COUNT
16188
+ * @return Returns the amount of timecycle modifiers loaded.
16189
+ */
16190
+ declare function GetTimecycleModifierCount(): number;
16191
+
16163
16192
  /**
16164
16193
  * Only use for this in the PC scripts is:
16165
16194
  * if (GRAPHICS::GET_TIMECYCLE_MODIFIER_INDEX() != -1)
@@ -16167,6 +16196,41 @@ declare function GetTimeSincePlayerHitVehicle(player: number): number;
16167
16196
  */
16168
16197
  declare function GetTimecycleModifierIndex(): number;
16169
16198
 
16199
+ /**
16200
+ * GET_TIMECYCLE_MODIFIER_INDEX_BY_NAME
16201
+ * @param modifierName The timecycle modifier name.
16202
+ * @return The timecycle modifier index.
16203
+ */
16204
+ declare function GetTimecycleModifierIndexByName(modifierName: string): number;
16205
+
16206
+ /**
16207
+ * GET_TIMECYCLE_MODIFIER_NAME_BY_INDEX
16208
+ * @param modifierIndex The timecycle modifier index.
16209
+ * @return The timecycle modifier name.
16210
+ */
16211
+ declare function GetTimecycleModifierNameByIndex(modifierIndex: number): string;
16212
+
16213
+ /**
16214
+ * A getter for [SET_TIMECYCLE_MODIFIER_STRENGTH](#\_0x82E7FFCD5B2326B3).
16215
+ * @return Returns current timecycle modifier strength.
16216
+ */
16217
+ declare function GetTimecycleModifierStrength(): number;
16218
+
16219
+ /**
16220
+ * GET_TIMECYCLE_MODIFIER_VAR
16221
+ * @param modifierName The name of timecycle modifier.
16222
+ * @param varName The name of timecycle variable.
16223
+ * @return Whether or not variable by name was found on the specified timecycle modifier.
16224
+ */
16225
+ declare function GetTimecycleModifierVar(modifierName: string, varName: string): [boolean, number, number];
16226
+
16227
+ /**
16228
+ * GET_TIMECYCLE_MODIFIER_VAR_COUNT
16229
+ * @param modifierName The timecycle modifier name.
16230
+ * @return The amount of variables used on a specified timecycle modifier.
16231
+ */
16232
+ declare function GetTimecycleModifierVarCount(modifierName: string): number;
16233
+
16170
16234
  /**
16171
16235
  * GET_TIMECYCLE_TRANSITION_MODIFIER_INDEX
16172
16236
  */
@@ -16176,6 +16240,26 @@ declare function GetTimecycleTransitionModifierIndex(): number;
16176
16240
  */
16177
16241
  declare function N_0x459fd2c8d0ab78bc(): number;
16178
16242
 
16243
+ /**
16244
+ * Returns the amount of variables available to be applied on timecycle modifiers.
16245
+ * @return The amount of available variables for timecycle modifiers.
16246
+ */
16247
+ declare function GetTimecycleVarCount(): number;
16248
+
16249
+ /**
16250
+ * See [GET_TIMECYCLE_VAR_COUNT](#\_0x838B34D8).
16251
+ * @param varIndex The index of variable.
16252
+ * @return The default value of a timecycle variable.
16253
+ */
16254
+ declare function GetTimecycleVarDefaultValueByIndex(varIndex: number): number;
16255
+
16256
+ /**
16257
+ * See [GET_TIMECYCLE_VAR_COUNT](#\_0x838B34D8).
16258
+ * @param varIndex The index of variable.
16259
+ * @return The name of a timecycle variable.
16260
+ */
16261
+ declare function GetTimecycleVarNameByIndex(varIndex: number): string;
16262
+
16179
16263
  /**
16180
16264
  * GET_TOGGLE_PAUSED_RENDERPHASES_STATUS
16181
16265
  */
@@ -38741,6 +38825,19 @@ declare function RemoveTcmodifierOverride(p0: string): void;
38741
38825
  */
38742
38826
  declare function N_0x15e33297c3e8dc60(p0: string): void;
38743
38827
 
38828
+ /**
38829
+ * REMOVE_TIMECYCLE_MODIFIER
38830
+ * @param modifierName The timecycle modifier name.
38831
+ */
38832
+ declare function RemoveTimecycleModifier(modifierName: string): void;
38833
+
38834
+ /**
38835
+ * REMOVE_TIMECYCLE_MODIFIER_VAR
38836
+ * @param modifierName The name of timecycle modifier.
38837
+ * @param varName The name of timecycle variable.
38838
+ */
38839
+ declare function RemoveTimecycleModifierVar(modifierName: string, varName: string): void;
38840
+
38744
38841
  /**
38745
38842
  * REMOVE_VEHICLE_ASSET
38746
38843
  */
@@ -49779,6 +49876,15 @@ declare function SetTimecycleModifier(modifierName: string): void;
49779
49876
  */
49780
49877
  declare function SetTimecycleModifierStrength(strength: number): void;
49781
49878
 
49879
+ /**
49880
+ * SET_TIMECYCLE_MODIFIER_VAR
49881
+ * @param modifierName The name of timecycle modifier.
49882
+ * @param varName The name of timecycle variable.
49883
+ * @param value1 The first value of variable.
49884
+ * @param value2 The second value of variable.
49885
+ */
49886
+ declare function SetTimecycleModifierVar(modifierName: string, varName: string, value1: number, value2: number): void;
49887
+
49782
49888
  /**
49783
49889
  * Toggles the Cayo Perico map.
49784
49890
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.6397-1",
3
+ "version": "2.0.6398-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {