11
11
function StartAudioScene (scene ) end
12
12
13
13
14
- --- N_0x0150b6ff25a9e2e5
14
+ --- Unloads tennis vocalization banks loaded with [`REQUEST_TENNIS_BANKS`](https://docs.fivem.net/natives/?_0x4ADA3F19BE4A6047).
15
15
---
16
16
--- @hash [0x0150B6FF25A9E2E5](https://docs.fivem.net/natives/?_0x0150B6FF25A9E2E5)
17
17
---
18
18
--- @return void
19
19
--- @overload fun (): void
20
+ function UnrequestTennisBanks () end
21
+
22
+
23
+ --- # New Name: UnrequestTennisBanks
24
+ --- Unloads tennis vocalization banks loaded with [`REQUEST_TENNIS_BANKS`](https://docs.fivem.net/natives/?_0x4ADA3F19BE4A6047).
25
+ ---
26
+ --- @hash [0x0150B6FF25A9E2E5](https://docs.fivem.net/natives/?_0x0150B6FF25A9E2E5)
27
+ ---
28
+ --- @return void
29
+ --- @overload fun (): void
30
+ --- @deprecated
20
31
function N_0x0150b6ff25a9e2e5 () end
21
32
22
33
@@ -434,7 +445,7 @@ function ClearAmbientZoneListState(zoneListName, forceUpdate) end
434
445
--- Needs to be called every frame.
435
446
---
436
447
--- ```cpp
437
- --- enum audSpecialEffectMode
448
+ --- enum eAudSpecialEffectMode
438
449
--- {
439
450
--- kSpecialEffectModeNormal = 0,
440
451
--- kSpecialEffectModeUnderwater = 1,
@@ -459,7 +470,7 @@ function SetAudioSpecialEffectMode(mode) end
459
470
--- Needs to be called every frame.
460
471
---
461
472
--- ```cpp
462
- --- enum audSpecialEffectMode
473
+ --- enum eAudSpecialEffectMode
463
474
--- {
464
475
--- kSpecialEffectModeNormal = 0,
465
476
--- kSpecialEffectModeUnderwater = 1,
@@ -564,13 +575,26 @@ function N_0x153973ab99fe8980(entity, groupName, fadeIn) end
564
575
function DynamicMixerRelatedFn (entity , groupName , fadeIn ) end
565
576
566
577
567
- --- N_0x159b7318403a1cd8
578
+ --- Sets the global radio signal level, lower value will cause radio static.
579
+ --- Used only a handful of times in scripts.
568
580
---
569
581
--- @hash [0x159B7318403A1CD8](https://docs.fivem.net/natives/?_0x159B7318403A1CD8)
570
- --- @param p0 any
582
+ --- @param signalLevel number ( float )
571
583
--- @return void
572
- --- @overload fun ( p0 : any ): void
573
- function N_0x159b7318403a1cd8 (p0 ) end
584
+ --- @overload fun ( signalLevel : number ): void
585
+ function SetGlobalRadioSignalLevel (signalLevel ) end
586
+
587
+
588
+ --- # New Name: SetGlobalRadioSignalLevel
589
+ --- Sets the global radio signal level, lower value will cause radio static.
590
+ --- Used only a handful of times in scripts.
591
+ ---
592
+ --- @hash [0x159B7318403A1CD8](https://docs.fivem.net/natives/?_0x159B7318403A1CD8)
593
+ --- @param signalLevel number (float )
594
+ --- @return void
595
+ --- @overload fun ( signalLevel : number ): void
596
+ --- @deprecated
597
+ function N_0x159b7318403a1cd8 (signalLevel ) end
574
598
575
599
576
600
--- Clears the previously queued custom track lost for the given radio station.
@@ -876,12 +900,29 @@ function SetPedAudioFootstepQuiet(ped, enabled) end
876
900
--- ```
877
901
--- NativeDB Introduced: v1493
878
902
--- ```
903
+ ---
904
+ --- Removes all instances of a given context block.
879
905
---
880
906
--- @hash [0x2ACABED337622DF2](https://docs.fivem.net/natives/?_0x2ACABED337622DF2)
881
- --- @param p0 string (char* )
907
+ --- @param groupName string (char* )
882
908
--- @return void
883
- --- @overload fun ( p0 : string ): void
884
- function N_0x2acabed337622df2 (p0 ) end
909
+ --- @overload fun ( groupName : string ): void
910
+ function UnblockSpeechContextGroup (groupName ) end
911
+
912
+
913
+ --- # New Name: UnblockSpeechContextGroup
914
+ --- ```
915
+ --- NativeDB Introduced: v1493
916
+ --- ```
917
+ ---
918
+ --- Removes all instances of a given context block.
919
+ ---
920
+ --- @hash [0x2ACABED337622DF2](https://docs.fivem.net/natives/?_0x2ACABED337622DF2)
921
+ --- @param groupName string (char* )
922
+ --- @return void
923
+ --- @overload fun ( groupName : string ): void
924
+ --- @deprecated
925
+ function N_0x2acabed337622df2 (groupName ) end
885
926
886
927
887
928
--- IsRadioStationFavourited
@@ -3706,49 +3747,51 @@ function StopCurrentPlayingAmbientSpeech(ped) end
3706
3747
3707
3748
--- Generic interface to toggle audio functionality, with auto-reset on script termination and support for multiple script threads
3708
3749
---
3750
+ --- Flags used in game scripts:
3751
+ --- | Flag Name | Description of Usage |
3752
+ --- | ----- | -------- |
3753
+ --- | ActivateSwitchWheelAudio | |
3754
+ --- | AllowAmbientSpeechInSlowMo | |
3755
+ --- | AllowCutsceneOverScreenFade | |
3756
+ --- | AllowForceRadioAfterRetune | |
3757
+ --- | AllowPainAndAmbientSpeechToPlayDuringCutscene | |
3758
+ --- | AllowPlayerAIOnMission | |
3759
+ --- | AllowPoliceScannerWhenPlayerHasNoControl | |
3760
+ --- | AllowRadioDuringSwitch | |
3761
+ --- | AllowRadioOverScreenFade | |
3762
+ --- | AllowScoreAndRadio | |
3763
+ --- | AllowScriptedSpeechInSlowMo | |
3764
+ --- | AvoidMissionCompleteDelay | |
3765
+ --- | DisableAbortConversationForDeathAndInjury | |
3766
+ --- | DisableAbortConversationForRagdoll | |
3767
+ --- | DisableBarks | |
3768
+ --- | DisableFlightMusic | |
3769
+ --- | DisableNPCHeadsetSpeechAttenuation | |
3770
+ --- | DisableReplayScriptStreamRecording | |
3771
+ --- | EnableHeadsetBeep | |
3772
+ --- | EnableMissileLockWarningForAllVehicles | |
3773
+ --- | ForceConversationInterrupt | |
3774
+ --- | ForceSeamlessRadioSwitch | |
3775
+ --- | ForceSniperAudio | |
3776
+ --- | FrontendRadioDisabled | |
3777
+ --- | HoldMissionCompleteWhenPrepared | |
3778
+ --- | IsDirectorModeActive | Allows you to play speech infinitely without any pauses like in Director Mode. |
3779
+ --- | IsPlayerOnMissionForSpeech | |
3780
+ --- | ListenerReverbDisabled | |
3781
+ --- | LoadMPData | |
3782
+ --- | MobileRadioInGame | |
3783
+ --- | OnlyAllowScriptTriggerPoliceScanner | |
3784
+ --- | PlayerOnDLCHeist4Island | |
3785
+ --- | PlayMenuMusic | |
3786
+ --- | PoliceScannerDisabled | |
3787
+ --- | ScriptedConvListenerMaySpeak | |
3788
+ --- | SpeechDucksScore | |
3789
+ --- | SuppressPlayerScubaBreathing | |
3790
+ --- | UseQuietSceneSoftVersion | |
3791
+ --- | WantedMusicDisabled | |
3792
+ --- | WantedMusicOnMission | |
3793
+ ---
3709
3794
--- ```
3710
- --- Possible flag names:
3711
- --- "ActivateSwitchWheelAudio"
3712
- --- "AllowAmbientSpeechInSlowMo"
3713
- --- "AllowCutsceneOverScreenFade"
3714
- --- "AllowForceRadioAfterRetune"
3715
- --- "AllowPainAndAmbientSpeechToPlayDuringCutscene"
3716
- --- "AllowPlayerAIOnMission"
3717
- --- "AllowPoliceScannerWhenPlayerHasNoControl"
3718
- --- "AllowRadioDuringSwitch"
3719
- --- "AllowRadioOverScreenFade"
3720
- --- "AllowScoreAndRadio"
3721
- --- "AllowScriptedSpeechInSlowMo"
3722
- --- "AvoidMissionCompleteDelay"
3723
- --- "DisableAbortConversationForDeathAndInjury"
3724
- --- "DisableAbortConversationForRagdoll"
3725
- --- "DisableBarks"
3726
- --- "DisableFlightMusic"
3727
- --- "DisableReplayScriptStreamRecording"
3728
- --- "EnableHeadsetBeep"
3729
- --- "ForceConversationInterrupt"
3730
- --- "ForceSeamlessRadioSwitch"
3731
- --- "ForceSniperAudio"
3732
- --- "FrontendRadioDisabled"
3733
- --- "HoldMissionCompleteWhenPrepared"
3734
- --- "IsDirectorModeActive"
3735
- --- "IsPlayerOnMissionForSpeech"
3736
- --- "ListenerReverbDisabled"
3737
- --- "LoadMPData"
3738
- --- "MobileRadioInGame"
3739
- --- "OnlyAllowScriptTriggerPoliceScanner"
3740
- --- "PlayMenuMusic"
3741
- --- "PoliceScannerDisabled"
3742
- --- "ScriptedConvListenerMaySpeak"
3743
- --- "SpeechDucksScore"
3744
- --- "SuppressPlayerScubaBreathing"
3745
- --- "WantedMusicDisabled"
3746
- --- "WantedMusicOnMission"
3747
- --- -------------------------------
3748
- --- No added flag names between b393d and b573d, including b573d.
3749
- --- #######################################################################
3750
- --- "IsDirectorModeActive" is an audio flag which will allow you to play speech infinitely without any pauses like in Director Mode.
3751
- --- -----------------------------------------------------------------------
3752
3795
--- All flag IDs and hashes:
3753
3796
--- ID: 01 | Hash: 0x20A7858F
3754
3797
--- ID: 02 | Hash: 0xA11C2259
@@ -3845,6 +3888,10 @@ function SetVehicleRadioLoud(vehicle, loud) end
3845
3888
--- This native had a 4th parameter added in newer game builds
3846
3889
--- `syncOverNetwork` creates a `CPedPlayPainEvent` when set to true, by default this variable is false.
3847
3890
---
3891
+ --- You won't be able to use this for clones (remote pedestrians that are not owned by you) or migrating peds if `syncOverNetwork` is set to true; it simply won't execute.
3892
+ ---
3893
+ --- The `ped` should also have speech for this to work.
3894
+ ---
3848
3895
--- ```cpp
3849
3896
--- enum eAudDamageReason {
3850
3897
--- AUD_DAMAGE_REASON_DEFAULT = 0,
@@ -3857,7 +3904,8 @@ function SetVehicleRadioLoud(vehicle, loud) end
3857
3904
--- AUD_DAMAGE_REASON_SCREAM_TERROR = 7,
3858
3905
--- AUD_DAMAGE_REASON_ON_FIRE = 8,
3859
3906
--- AUD_DAMAGE_REASON_DROWNING = 9,
3860
- --- AUD_DAMAGE_REASON_SURFACE_DROWNING = 10, // drowning on the surface of water, after we time out
3907
+ --- // drowning on the surface of water, after we time out
3908
+ --- AUD_DAMAGE_REASON_SURFACE_DROWNING = 10,
3861
3909
--- AUD_DAMAGE_REASON_INHALE = 11,
3862
3910
--- AUD_DAMAGE_REASON_EXHALE = 12,
3863
3911
--- AUD_DAMAGE_REASON_POST_FALL_GRUNT = 13,
@@ -4258,10 +4306,10 @@ function N_0xcada5a0d0702381e(soundName, soundsetName) end
4258
4306
4259
4307
--- ```cpp
4260
4308
--- enum eAudAnimalMood {
4261
- --- AUD_ANIMAL_MOOD_ANGRY,
4262
- --- AUD_ANIMAL_MOOD_PLAYFUL,
4309
+ --- AUD_ANIMAL_MOOD_ANGRY = 0 ,
4310
+ --- AUD_ANIMAL_MOOD_PLAYFUL = 1 ,
4263
4311
---
4264
- --- AUD_ANIMAL_MOOD_NUM_MOODS
4312
+ --- AUD_ANIMAL_MOOD_NUM_MOODS = 2
4265
4313
--- }
4266
4314
--- ```
4267
4315
---
@@ -4697,6 +4745,20 @@ function GetPlayerRadioStationIndex() end
4697
4745
function SetPlayerAngry (ped , isAngry ) end
4698
4746
4699
4747
4748
+ --- This native is used alongside with [`SET_VEHICLE_TYRE_BURST`](https://docs.fivem.net/natives/?_0xEC6A202EE4960385).
4749
+ ---
4750
+ --- ```
4751
+ --- NativeDB Introduced: v3258
4752
+ --- ```
4753
+ ---
4754
+ --- @hash [0xEB7D0E1FCC8FE17A](https://docs.fivem.net/natives/?_0xEB7D0E1FCC8FE17A)
4755
+ --- @param vehicle Vehicle
4756
+ --- @param force boolean
4757
+ --- @return void
4758
+ --- @overload fun ( vehicle : Vehicle , force : boolean ): void
4759
+ function ForceVehicleEngineSynth (vehicle , force ) end
4760
+
4761
+
4700
4762
--- Plays a preloaded stream back from the specified object.
4701
4763
---
4702
4764
--- @hash [0xEBAA9B64D76356FD](https://docs.fivem.net/natives/?_0xEBAA9B64D76356FD)
@@ -4755,12 +4817,12 @@ function PlayAmbientSpeechAtCoords(speechName, voiceName, x, y, z, speechParam)
4755
4817
--- ```cpp
4756
4818
--- enum eAudAnimalType {
4757
4819
--- AUD_ANIMAL_NONE = -1,
4758
- --- AUD_ANIMAL_BOAR,
4759
- --- AUD_ANIMAL_CHICKEN,
4760
- --- AUD_ANIMAL_DOG,
4761
- --- AUD_ANIMAL_DOG_ROTTWEILER,
4762
- --- AUD_ANIMAL_HORSE,
4763
- --- AUD_NUM_ANIMALS
4820
+ --- AUD_ANIMAL_BOAR = 0 ,
4821
+ --- AUD_ANIMAL_CHICKEN = 1 ,
4822
+ --- AUD_ANIMAL_DOG = 2 ,
4823
+ --- AUD_ANIMAL_DOG_ROTTWEILER = 3 ,
4824
+ --- AUD_ANIMAL_HORSE = 4 ,
4825
+ --- AUD_NUM_ANIMALS = 5
4764
4826
--- }
4765
4827
--- ```
4766
4828
---
@@ -4777,12 +4839,12 @@ function PlayAnimalVocalization(pedHandle, animalType, speechName) end
4777
4839
--- ```cpp
4778
4840
--- enum eAudAnimalType {
4779
4841
--- AUD_ANIMAL_NONE = -1,
4780
- --- AUD_ANIMAL_BOAR,
4781
- --- AUD_ANIMAL_CHICKEN,
4782
- --- AUD_ANIMAL_DOG,
4783
- --- AUD_ANIMAL_DOG_ROTTWEILER,
4784
- --- AUD_ANIMAL_HORSE,
4785
- --- AUD_NUM_ANIMALS
4842
+ --- AUD_ANIMAL_BOAR = 0 ,
4843
+ --- AUD_ANIMAL_CHICKEN = 1 ,
4844
+ --- AUD_ANIMAL_DOG = 2 ,
4845
+ --- AUD_ANIMAL_DOG_ROTTWEILER = 3 ,
4846
+ --- AUD_ANIMAL_HORSE = 4 ,
4847
+ --- AUD_NUM_ANIMALS = 5
4786
4848
--- }
4787
4849
--- ```
4788
4850
---
0 commit comments