RedM Natives

GET_SOUND_ID

Hash0x430386FE9BF80B45
Runtime nameGetSoundId
NamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x430386FE9BF80B45

Signature

int GET_SOUND_ID();

Returns int

Usage

Lua
local retval = GetSoundId()

-- always works, by hash
local retval = Citizen.InvokeNative(0x430386FE9BF80B45, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetSoundId();

// by hash
const retval = Citizen.invokeNative('0x430386FE9BF80B45', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x430386FE9BF80B45);

See also

Sources

alloc8or RDR3 NativeDB

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