@citizenfx/client 2.0.7494-1 → 2.0.7505-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.
@@ -6347,15 +6347,6 @@ declare function DisplaySniperScopeThisFrame(): void;
6347
6347
  */
6348
6348
  declare function DisplaySystemSigninUi(unk: boolean): void;
6349
6349
 
6350
- /**
6351
- * _DISPOSE_SYNCHRONIZED_SCENE
6352
- */
6353
- declare function DisposeSynchronizedScene(scene: number): void;
6354
- /**
6355
- * _DISPOSE_SYNCHRONIZED_SCENE
6356
- */
6357
- declare function N_0xcd9cc7e200a52a6f(scene: number): void;
6358
-
6359
6350
  /**
6360
6351
  * Toggles fake distant siren sounds
6361
6352
  * @param shouldPlay True will play distand sounds, false will disable them.
@@ -7912,16 +7903,27 @@ declare function N_0xd4793dff3af2abcd(): void;
7912
7903
  declare function EnableTennisMode(ped: number, toggle: boolean, p2: boolean): void;
7913
7904
 
7914
7905
  /**
7915
- * Sets whether the vehicle passed has exhaust pops.
7906
+ * Enable or disable exhaust pops on the given vehicle.
7916
7907
  * @param toggle Enables or disables exaust pops.
7917
7908
  */
7918
7909
  declare function EnableVehicleExhaustPops(vehicle: number, toggle: boolean): void;
7919
7910
  /**
7920
- * Sets whether the vehicle passed has exhaust pops.
7911
+ * Enable or disable exhaust pops on the given vehicle.
7921
7912
  * @param toggle Enables or disables exaust pops.
7922
7913
  */
7923
7914
  declare function N_0x2be4bc731d039d5a(vehicle: number, toggle: boolean): void;
7924
7915
 
7916
+ /**
7917
+ * ENABLE_VEHICLE_FANBELT_DAMAGE
7918
+ * @param enableFanbeltDamage Enables fanbelt damage
7919
+ */
7920
+ declare function EnableVehicleFanbeltDamage(vehicle: number, enableFanbeltDamage: boolean): void;
7921
+ /**
7922
+ * ENABLE_VEHICLE_FANBELT_DAMAGE
7923
+ * @param enableFanbeltDamage Enables fanbelt damage
7924
+ */
7925
+ declare function N_0x1c073274e065c6d2(vehicle: number, enableFanbeltDamage: boolean): void;
7926
+
7925
7927
  /**
7926
7928
  * END_FIND_KVP
7927
7929
  * @param handle The KVP find handle returned from [START_FIND_KVP](#\_0xDD379006)
@@ -9175,6 +9177,8 @@ declare function FindNextVehicle(findHandle: number, outEntity?: number): [boole
9175
9177
 
9176
9178
  /**
9177
9179
  * FIND_RADIO_STATION_INDEX
9180
+ * @param stationNameHash the station name hash to search for
9181
+ * @return The station index for the specified hash, or 254 if the radio station did not exist.
9178
9182
  */
9179
9183
  declare function FindRadioStationIndex(stationNameHash: number): number;
9180
9184
 
@@ -9378,6 +9382,19 @@ declare function ForceLightningFlash(): void;
9378
9382
  */
9379
9383
  declare function CreateLightningThunder(): void;
9380
9384
 
9385
+ /**
9386
+ * Forces the chosen station to paly the given music track list. All other music track lists will be locked.
9387
+ */
9388
+ declare function ForceMusicTrackList(radioStation: string, trackListName: string, timeOffsetMilliseconds: number): void;
9389
+ /**
9390
+ * Forces the chosen station to paly the given music track list. All other music track lists will be locked.
9391
+ */
9392
+ declare function N_0x4e0af9114608257c(radioStation: string, trackListName: string, timeOffsetMilliseconds: number): void;
9393
+ /**
9394
+ * Forces the chosen station to paly the given music track list. All other music track lists will be locked.
9395
+ */
9396
+ declare function ForceRadioTrackListPosition(radioStation: string, trackListName: string, timeOffsetMilliseconds: number): void;
9397
+
9381
9398
  /**
9382
9399
  * FORCE_PED_AI_AND_ANIMATION_UPDATE
9383
9400
  */
@@ -9410,6 +9427,15 @@ declare function N_0x2208438012482a1a(ped: number, p1: boolean, p2: boolean): vo
9410
9427
  */
9411
9428
  declare function ForcePedMotionState(ped: number, motionStateHash: string | number, p2: boolean, p3: number, p4: boolean): boolean;
9412
9429
 
9430
+ /**
9431
+ * Forces the ambient peds into their panic walla state
9432
+ */
9433
+ declare function ForcePedPanicWalla(): void;
9434
+ /**
9435
+ * Forces the ambient peds into their panic walla state
9436
+ */
9437
+ declare function N_0x062d5ead4da2fa6a(): void;
9438
+
9413
9439
  /**
9414
9440
  * FORCE_PED_TO_OPEN_PARACHUTE
9415
9441
  */
@@ -9433,15 +9459,6 @@ declare function ForcePlaybackRecordedVehicleUpdate(vehicle: number, p1: boolean
9433
9459
  */
9434
9460
  declare function N_0x1f2e4e06dea8992b(vehicle: number, p1: boolean): void;
9435
9461
 
9436
- /**
9437
- * NativeDB Introduced: v2372
9438
- */
9439
- declare function ForceRadioTrackListPosition(radioStation: string, trackListName: string, milliseconds: number): void;
9440
- /**
9441
- * NativeDB Introduced: v2372
9442
- */
9443
- declare function N_0x4e0af9114608257c(radioStation: string, trackListName: string, milliseconds: number): void;
9444
-
9445
9462
  /**
9446
9463
  * FORCE_RENDER_IN_GAME_UI
9447
9464
  */
@@ -9495,32 +9512,21 @@ declare function ForceSubmarineSurfaceMode(vehicle: number, toggle: boolean): vo
9495
9512
  declare function N_0x33506883545ac0df(vehicle: number, toggle: boolean): void;
9496
9513
 
9497
9514
  /**
9498
- * This native sets the audio of the specified vehicle to the audioName (p1).
9499
- * Use the audioNameHash found in vehicles.meta
9500
- * Example:
9501
- * _SET_VEHICLE_AUDIO(veh, "ADDER");
9502
- * The selected vehicle will now have the audio of the Adder.
9503
- * FORCE_VEHICLE_???
9515
+ * This native sets the audio to the specific vehicle hash's audioNameHash.
9504
9516
  */
9505
- declare function ForceVehicleEngineAudio(vehicle: number, audioName: string): void;
9517
+ declare function ForceUseAudioGameObject(vehicle: number, gameObjectName: string): void;
9506
9518
  /**
9507
- * This native sets the audio of the specified vehicle to the audioName (p1).
9508
- * Use the audioNameHash found in vehicles.meta
9509
- * Example:
9510
- * _SET_VEHICLE_AUDIO(veh, "ADDER");
9511
- * The selected vehicle will now have the audio of the Adder.
9512
- * FORCE_VEHICLE_???
9519
+ * This native sets the audio to the specific vehicle hash's audioNameHash.
9513
9520
  */
9514
- declare function N_0x4f0c413926060b38(vehicle: number, audioName: string): void;
9521
+ declare function N_0x4f0c413926060b38(vehicle: number, gameObjectName: string): void;
9515
9522
  /**
9516
- * This native sets the audio of the specified vehicle to the audioName (p1).
9517
- * Use the audioNameHash found in vehicles.meta
9518
- * Example:
9519
- * _SET_VEHICLE_AUDIO(veh, "ADDER");
9520
- * The selected vehicle will now have the audio of the Adder.
9521
- * FORCE_VEHICLE_???
9523
+ * This native sets the audio to the specific vehicle hash's audioNameHash.
9524
+ */
9525
+ declare function SetVehicleAudio(vehicle: number, gameObjectName: string): void;
9526
+ /**
9527
+ * This native sets the audio to the specific vehicle hash's audioNameHash.
9522
9528
  */
9523
- declare function SetVehicleAudio(vehicle: number, audioName: string): void;
9529
+ declare function ForceVehicleEngineAudio(vehicle: number, gameObjectName: string): void;
9524
9530
 
9525
9531
  /**
9526
9532
  * FREE_MEMORY_FOR_HIGH_QUALITY_PHOTO
@@ -9557,11 +9563,13 @@ declare function N_0x0a46af8a78dc5e0a(): void;
9557
9563
  declare function FreezeEntityPosition(entity: number, toggle: boolean): void;
9558
9564
 
9559
9565
  /**
9560
- * FREEZE_MICROPHONE
9566
+ * Allows script to freeze the microphone for a single frame, mantaining its current transform/settings.
9567
+ * This native should be called every frame you want to keep the microphone frozen, when you stop calling it it will automatically unfreeze
9561
9568
  */
9562
9569
  declare function FreezeMicrophone(): void;
9563
9570
  /**
9564
- * FREEZE_MICROPHONE
9571
+ * Allows script to freeze the microphone for a single frame, mantaining its current transform/settings.
9572
+ * This native should be called every frame you want to keep the microphone frozen, when you stop calling it it will automatically unfreeze
9565
9573
  */
9566
9574
  declare function N_0xd57aaae0e2214d11(): void;
9567
9575
 
@@ -9708,13 +9716,20 @@ declare function GetAmbientPedRangeMultiplier(): number;
9708
9716
  declare function GetAmbientVehicleRangeMultiplier(): number;
9709
9717
 
9710
9718
  /**
9711
- * _GET_AMBIENT_VOICE_NAME_HASH
9719
+ * GET_AMBIENT_VOICE_NAME_HASH
9720
+ * @return The hash of the voice name in use by the ped.
9712
9721
  */
9713
9722
  declare function GetAmbientVoiceNameHash(ped: number): number;
9714
9723
  /**
9715
- * _GET_AMBIENT_VOICE_NAME_HASH
9724
+ * GET_AMBIENT_VOICE_NAME_HASH
9725
+ * @return The hash of the voice name in use by the ped.
9716
9726
  */
9717
9727
  declare function N_0x5e203da2ba15d436(ped: number): number;
9728
+ /**
9729
+ * GET_AMBIENT_VOICE_NAME_HASH
9730
+ * @return The hash of the voice name in use by the ped.
9731
+ */
9732
+ declare function GetAmbientVoiceNameHash(ped: number): number;
9718
9733
 
9719
9734
  /**
9720
9735
  * GET_AMMO_IN_CLIP
@@ -10661,17 +10676,6 @@ declare function GetCurrentPedWeaponEntityIndex(ped: number): number;
10661
10676
  */
10662
10677
  declare function GetCurrentPlaybackForVehicle(vehicle: number): number;
10663
10678
 
10664
- /**
10665
- * Return the hash of the radio stations current track.
10666
- * NativeDB Introduced: v1493
10667
- */
10668
- declare function GetCurrentRadioTrackName(radioStationName: string): number;
10669
- /**
10670
- * Return the hash of the radio stations current track.
10671
- * NativeDB Introduced: v1493
10672
- */
10673
- declare function N_0x34d66bc058019ce0(radioStationName: string): number;
10674
-
10675
10679
  /**
10676
10680
  * Return the playback time (in milliseconds) of the radio stations current track.
10677
10681
  * NativeDB Introduced: v1493
@@ -10705,6 +10709,22 @@ declare function GetCurrentScriptedConversationLine(): number;
10705
10709
  */
10706
10710
  declare function GetCurrentServerEndpoint(): string;
10707
10711
 
10712
+ /**
10713
+ * GET_CURRENT_TRACK_SOUND_NAME
10714
+ * @return The current sound name as a hash for the currently playing track on the given station.
10715
+ */
10716
+ declare function GetCurrentTrackSoundName(radioStationName: string): number;
10717
+ /**
10718
+ * GET_CURRENT_TRACK_SOUND_NAME
10719
+ * @return The current sound name as a hash for the currently playing track on the given station.
10720
+ */
10721
+ declare function N_0x34d66bc058019ce0(radioStationName: string): number;
10722
+ /**
10723
+ * GET_CURRENT_TRACK_SOUND_NAME
10724
+ * @return The current sound name as a hash for the currently playing track on the given station.
10725
+ */
10726
+ declare function GetCurrentRadioTrackName(radioStationName: string): number;
10727
+
10708
10728
  /**
10709
10729
  * GET_CURRENT_WEBPAGE_ID
10710
10730
  */
@@ -12405,10 +12425,12 @@ declare function N_0x9689123e3f213aa5(): boolean;
12405
12425
 
12406
12426
  /**
12407
12427
  * GET_IS_PRELOADED_CONVERSATION_READY
12428
+ * @return Returns true if the preloaded conversation has finished preparing.
12408
12429
  */
12409
12430
  declare function GetIsPreloadedConversationReady(): boolean;
12410
12431
  /**
12411
12432
  * GET_IS_PRELOADED_CONVERSATION_READY
12433
+ * @return Returns true if the preloaded conversation has finished preparing.
12412
12434
  */
12413
12435
  declare function N_0xe73364db90778ffa(): boolean;
12414
12436
 
@@ -24513,11 +24535,6 @@ declare function N_0x06087579e7aa85a9(p0: number, p1: number, p2: number, p3: nu
24513
24535
  */
24514
24536
  declare function N_0x061cb768363d6424(ped: number, toggle: boolean): void;
24515
24537
 
24516
- /**
24517
- * FORCE_*
24518
- */
24519
- declare function N_0x062d5ead4da2fa6a(): void;
24520
-
24521
24538
  /**
24522
24539
  * A vehicle recording playback flag only used in jewelry_heist
24523
24540
  */
@@ -24893,11 +24910,6 @@ declare function N_0x1bb299305c3e8c13(p0: number, p1: number, p2: number, p3: nu
24893
24910
  */
24894
24911
  declare function N_0x1bbc135a4d25edde(p0: boolean): void;
24895
24912
 
24896
- /**
24897
- * ENABLE_VEHICLE_*
24898
- */
24899
- declare function N_0x1c073274e065c6d2(vehicle: number, toggle: boolean): void;
24900
-
24901
24913
  /**
24902
24914
  * NativeDB Introduced: v1604
24903
24915
  */
@@ -56334,6 +56346,22 @@ declare function TakeControlOfFrontend(): void;
56334
56346
  */
56335
56347
  declare function N_0xec9264727eec0f28(): void;
56336
56348
 
56349
+ /**
56350
+ * TAKE_OWNERSHIP_OF_SYNCHRONIZED_SCENE
56351
+ * @param scene Scene ID returned by [`CREATE_SYNCHRONIZED_SCENE`](#\_0x8C18E0F9080ADD73)
56352
+ */
56353
+ declare function TakeOwnershipOfSynchronizedScene(scene: number): void;
56354
+ /**
56355
+ * TAKE_OWNERSHIP_OF_SYNCHRONIZED_SCENE
56356
+ * @param scene Scene ID returned by [`CREATE_SYNCHRONIZED_SCENE`](#\_0x8C18E0F9080ADD73)
56357
+ */
56358
+ declare function N_0xcd9cc7e200a52a6f(scene: number): void;
56359
+ /**
56360
+ * TAKE_OWNERSHIP_OF_SYNCHRONIZED_SCENE
56361
+ * @param scene Scene ID returned by [`CREATE_SYNCHRONIZED_SCENE`](#\_0x8C18E0F9080ADD73)
56362
+ */
56363
+ declare function DisposeSynchronizedScene(scene: number): void;
56364
+
56337
56365
  /**
56338
56366
  * TAN
56339
56367
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.7494-1",
3
+ "version": "2.0.7505-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {