The Lab
AUDIO native

_IS_SCRIPTED_AUDIO_CUSTOM

returns BOOL2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Returns true if the scripted audio for item in soundSet is a custom sound.

Signature

C
BOOL _IS_SCRIPTED_AUDIO_CUSTOM(Hash item, Hash soundSet); // 0x6DF942C4179BE5AB b1207

Parameters

#NameType
1itemHash
2soundSetHash

Facts

Facts about _IS_SCRIPTED_AUDIO_CUSTOM
Name
_IS_SCRIPTED_AUDIO_CUSTOM
Hash
0x6DF942C4179BE5AB
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x6DF942C4179BE5AB, -- _IS_SCRIPTED_AUDIO_CUSTOM
  GetHashKey("name"), -- Hash item
  GetHashKey("name") -- Hash soundSet
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x6DF942C4179BE5AB", // _IS_SCRIPTED_AUDIO_CUSTOM
  GetHashKey("name"), // Hash item
  GetHashKey("name"), // Hash soundSet
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x6DF942C4179BE5AB, // _IS_SCRIPTED_AUDIO_CUSTOM
  (uint)API.GetHashKey("name"), // Hash item
  (uint)API.GetHashKey("name") // Hash soundSet
);
All AUDIO natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.