_IS_SCRIPTED_AUDIO_CUSTOM
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
BOOL _IS_SCRIPTED_AUDIO_CUSTOM(Hash item, Hash soundSet); // 0x6DF942C4179BE5AB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | item | Hash |
| 2 | soundSet | Hash |
Facts
| 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.
local result = Citizen.InvokeNative(0x6DF942C4179BE5AB, -- _IS_SCRIPTED_AUDIO_CUSTOM
GetHashKey("name"), -- Hash item
GetHashKey("name") -- Hash soundSet
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x6DF942C4179BE5AB", // _IS_SCRIPTED_AUDIO_CUSTOM
GetHashKey("name"), // Hash item
GetHashKey("name"), // Hash soundSet
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x6DF942C4179BE5AB, // _IS_SCRIPTED_AUDIO_CUSTOM
(uint)API.GetHashKey("name"), // Hash item
(uint)API.GetHashKey("name") // Hash soundSet
);Related AUDIO natives
- _IS_SCRIPTED_CONVERSATION_CREATED
- _IS_SCRIPTED_CONVERSION_ONGOING
- _STOP_ALL_SCRIPTED_AUDIO_SOUNDS
- AUDIO_IS_MUSIC_PLAYING
- IS_AUDIO_SCENE_ACTIVE
- IS_SCRIPTED_CONVERSATION_LOADED
- IS_SCRIPTED_CONVERSATION_PLAYING
- IS_SCRIPTED_SPEECH_PLAYING
- SET_IS_SCRIPTED_SPEECH_DISABLED
- _IS_ANY_CONVERSATION_PLAYING
- _IS_PED_IN_ANY_CONVERSATION
- _CLEAR_CONVERSATION_HISTORY_FOR_SCRIPTED_CONVERSATION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.