RedM Natives

SET_AUDIO_FLAG

Audio flags can be found here:

Hash0xB9EFD5C25018725A
Runtime nameSetAudioFlag
NamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB9EFD5C25018725A

Signature

void SET_AUDIO_FLAG(const char* flagName, BOOL toggle);

Parameters

NameTypeDescription
flagNameconst char*—
toggleBOOL—

Returns void

Description

Audio flags can be found here: https://pastebin.com/40qPV6EJ
https://github.com/femga/rdr3_discoveries/tree/master/audio/audio_flags

Usage

Lua
SetAudioFlag(flagName, toggle)

-- always works, by hash
Citizen.InvokeNative(0xB9EFD5C25018725A, flagName, toggle)
JavaScript and C#
JavaScript
SetAudioFlag(flagName, toggle);

// by hash
Citizen.invokeNative('0xB9EFD5C25018725A', flagName, toggle);
C#
Function.Call((Hash)0xB9EFD5C25018725A, flagName, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.