Skip to content

Commit

Permalink
feat(audio): batch 24 of native updates (#1020)
Browse files Browse the repository at this point in the history
* feat(audio): batch 24 of native updates

* Rename UseFootsetpScriptSweeteners.md to UseFootstepScriptSweeteners.md

Correct filename

* Update UpdateUnlockableDjRadioTracks.md

Re-add nativedb introduced comment.

---------

Co-authored-by: ammonia-cfx <[email protected]>
  • Loading branch information
AvarianKnight and 4mmonium authored Mar 13, 2024
1 parent f8d1ce9 commit f76d654
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 54 deletions.
17 changes: 0 additions & 17 deletions AUDIO/N_0x7ec3c679d0e7e46b.md

This file was deleted.

16 changes: 0 additions & 16 deletions AUDIO/N_0xbf4dc1784be94dfa.md

This file was deleted.

16 changes: 0 additions & 16 deletions AUDIO/UpdateLsur.md

This file was deleted.

19 changes: 19 additions & 0 deletions AUDIO/UpdateSoundCoord.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
ns: AUDIO
aliases: ["0x7EC3C679D0E7E46B"]
---
## UPDATE_SOUND_COORD

```c
// 0x7EC3C679D0E7E46B
void UPDATE_SOUND_COORD(int soundId, cs_type(Any) float x, cs_type(Any) float y, cs_type(Any) float z);
```
Updates a playing sounds absolute position.
## Parameters
* **soundId**:
* **x**:
* **y**:
* **z**:
19 changes: 19 additions & 0 deletions AUDIO/UpdateUnlockableDjRadioTracks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
ns: AUDIO
aliases: ["_UPDATE_LSUR"]
---
## UPDATE_UNLOCKABLE_DJ_RADIO_TRACKS

```c
// 0x47AED84213A47510
void UPDATE_UNLOCKABLE_DJ_RADIO_TRACKS(BOOL allowTrackReprioritization);
```
Unlocks any available DJ radio tracks based on the tuneable status
```
NativeDB Introduced: v1493
```
## Parameters
* **allowTrackReprioritization**:
18 changes: 18 additions & 0 deletions AUDIO/UseFootstepScriptSweeteners.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
ns: AUDIO
aliases: ["0xBF4DC1784BE94DFA"]
---
## USE_FOOTSTEP_SCRIPT_SWEETENERS

```c
// 0xBF4DC1784BE94DFA 0xD99E275B
void USE_FOOTSTEP_SCRIPT_SWEETENERS(Ped ped, BOOL useSweetner, cs_type(Any) Hash soundSetHash);
```
Allows script to trigger a sweetener footstep sound
## Parameters
* **ped**:
* **useSweetner**:
* **soundSetHash**:
8 changes: 3 additions & 5 deletions AUDIO/UseSirenAsHorn.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ ns: AUDIO

```c
// 0xFA932DE350266EF8 0xC6BC16F3
void USE_SIREN_AS_HORN(Vehicle vehicle, BOOL toggle);
void USE_SIREN_AS_HORN(Vehicle vehicle, BOOL sirenAsHorn);
```
## Parameters
* **vehicle**:
* **toggle**:
* **vehicle**:
* **sirenAsHorn**:

0 comments on commit f76d654

Please sign in to comment.