Skip to content

Commit 259b464

Browse files
Release 2024-10-14
1 parent 9f86e97 commit 259b464

25 files changed

+5723
-2533
lines changed

docs-gen/native-audio.def.lua

Lines changed: 130 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,23 @@
1111
function StartAudioScene(scene) end
1212

1313

14-
--- N_0x0150b6ff25a9e2e5
14+
--- Unloads tennis vocalization banks loaded with [`REQUEST_TENNIS_BANKS`](https://docs.fivem.net/natives/?_0x4ADA3F19BE4A6047).
1515
---
1616
--- @hash [0x0150B6FF25A9E2E5](https://docs.fivem.net/natives/?_0x0150B6FF25A9E2E5)
1717
---
1818
--- @return void
1919
--- @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
2031
function N_0x0150b6ff25a9e2e5() end
2132

2233

@@ -434,7 +445,7 @@ function ClearAmbientZoneListState(zoneListName, forceUpdate) end
434445
--- Needs to be called every frame.
435446
---
436447
--- ```cpp
437-
--- enum audSpecialEffectMode
448+
--- enum eAudSpecialEffectMode
438449
--- {
439450
--- kSpecialEffectModeNormal = 0,
440451
--- kSpecialEffectModeUnderwater = 1,
@@ -459,7 +470,7 @@ function SetAudioSpecialEffectMode(mode) end
459470
--- Needs to be called every frame.
460471
---
461472
--- ```cpp
462-
--- enum audSpecialEffectMode
473+
--- enum eAudSpecialEffectMode
463474
--- {
464475
--- kSpecialEffectModeNormal = 0,
465476
--- kSpecialEffectModeUnderwater = 1,
@@ -564,13 +575,26 @@ function N_0x153973ab99fe8980(entity, groupName, fadeIn) end
564575
function DynamicMixerRelatedFn(entity, groupName, fadeIn) end
565576

566577

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.
568580
---
569581
--- @hash [0x159B7318403A1CD8](https://docs.fivem.net/natives/?_0x159B7318403A1CD8)
570-
--- @param p0 any
582+
--- @param signalLevel number (float)
571583
--- @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
574598

575599

576600
--- Clears the previously queued custom track lost for the given radio station.
@@ -876,12 +900,29 @@ function SetPedAudioFootstepQuiet(ped, enabled) end
876900
--- ```
877901
--- NativeDB Introduced: v1493
878902
--- ```
903+
---
904+
--- Removes all instances of a given context block.
879905
---
880906
--- @hash [0x2ACABED337622DF2](https://docs.fivem.net/natives/?_0x2ACABED337622DF2)
881-
--- @param p0 string (char*)
907+
--- @param groupName string (char*)
882908
--- @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
885926

886927

887928
--- IsRadioStationFavourited
@@ -3706,49 +3747,51 @@ function StopCurrentPlayingAmbientSpeech(ped) end
37063747

37073748
--- Generic interface to toggle audio functionality, with auto-reset on script termination and support for multiple script threads
37083749
---
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+
---
37093794
--- ```
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-
--- -----------------------------------------------------------------------
37523795
--- All flag IDs and hashes:
37533796
--- ID: 01 | Hash: 0x20A7858F
37543797
--- ID: 02 | Hash: 0xA11C2259
@@ -3845,6 +3888,10 @@ function SetVehicleRadioLoud(vehicle, loud) end
38453888
--- This native had a 4th parameter added in newer game builds
38463889
--- `syncOverNetwork` creates a `CPedPlayPainEvent` when set to true, by default this variable is false.
38473890
---
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+
---
38483895
--- ```cpp
38493896
--- enum eAudDamageReason {
38503897
--- AUD_DAMAGE_REASON_DEFAULT = 0,
@@ -3857,7 +3904,8 @@ function SetVehicleRadioLoud(vehicle, loud) end
38573904
--- AUD_DAMAGE_REASON_SCREAM_TERROR = 7,
38583905
--- AUD_DAMAGE_REASON_ON_FIRE = 8,
38593906
--- 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,
38613909
--- AUD_DAMAGE_REASON_INHALE = 11,
38623910
--- AUD_DAMAGE_REASON_EXHALE = 12,
38633911
--- AUD_DAMAGE_REASON_POST_FALL_GRUNT = 13,
@@ -4258,10 +4306,10 @@ function N_0xcada5a0d0702381e(soundName, soundsetName) end
42584306

42594307
--- ```cpp
42604308
--- enum eAudAnimalMood {
4261-
--- AUD_ANIMAL_MOOD_ANGRY,
4262-
--- AUD_ANIMAL_MOOD_PLAYFUL,
4309+
--- AUD_ANIMAL_MOOD_ANGRY = 0,
4310+
--- AUD_ANIMAL_MOOD_PLAYFUL = 1,
42634311
---
4264-
--- AUD_ANIMAL_MOOD_NUM_MOODS
4312+
--- AUD_ANIMAL_MOOD_NUM_MOODS = 2
42654313
--- }
42664314
--- ```
42674315
---
@@ -4697,6 +4745,20 @@ function GetPlayerRadioStationIndex() end
46974745
function SetPlayerAngry(ped, isAngry) end
46984746

46994747

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+
47004762
--- Plays a preloaded stream back from the specified object.
47014763
---
47024764
--- @hash [0xEBAA9B64D76356FD](https://docs.fivem.net/natives/?_0xEBAA9B64D76356FD)
@@ -4755,12 +4817,12 @@ function PlayAmbientSpeechAtCoords(speechName, voiceName, x, y, z, speechParam)
47554817
--- ```cpp
47564818
--- enum eAudAnimalType {
47574819
--- 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
47644826
--- }
47654827
--- ```
47664828
---
@@ -4777,12 +4839,12 @@ function PlayAnimalVocalization(pedHandle, animalType, speechName) end
47774839
--- ```cpp
47784840
--- enum eAudAnimalType {
47794841
--- 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
47864848
--- }
47874849
--- ```
47884850
---

0 commit comments

Comments
 (0)