GET_SOUND_ID
Reserves and returns a free sound id for use with the sound natives.
Release it with RELEASE_SOUND_ID when the sound is finished to avoid running out of ids.
Signature
int GET_SOUND_ID(); // 0x430386FE9BF80B45 b1207Parameters
This native takes no parameters.
Facts
| Name | GET_SOUND_ID |
|---|---|
| Hash | 0x430386FE9BF80B45 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x430386FE9BF80B45, -- GET_SOUND_ID
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x430386FE9BF80B45", // GET_SOUND_ID
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x430386FE9BF80B45); // GET_SOUND_IDRelated AUDIO natives
- _PLAY_SOUND_FRONTEND_WITH_SOUND_ID
- _GET_LOADED_STREAM_ID_FROM_CREATION
- _HAS_SOUND_ID_FINISHED
- _PLAY_SOUND_FROM_POSITION_WITH_ID
- _SET_VARIABLE_ON_SOUND_WITH_ID
- _STOP_SOUND_WITH_ID
- RELEASE_SOUND_ID
- GET_CURRENT_SCRIPTED_CONVERSATION_LINE
- GET_MUSIC_PLAYTIME
- _GET_ENTITY_AUDIO_MIX_GROUP
- _GET_LAST_PLAYED_SPEECH_FOR_PED
- _GET_PED_SONG_INDEX_HOST
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.