PLAY_SOUND_FRONTEND
Plays the non-positional UI sound audioName from the soundset audioRef.
Typical for menu clicks and notification sounds.
Signature
void PLAY_SOUND_FRONTEND(const char* audioName, const char* audioRef, BOOL p2, Any p3); // 0x67C540AA08E4A6F5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | audioName | const char* |
| 2 | audioRef | const char* |
| 3 | p2 | BOOL |
| 4 | p3 | Any |
Facts
| Name | PLAY_SOUND_FRONTEND |
|---|---|
| Hash | 0x67C540AA08E4A6F5 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x67C540AA08E4A6F5, -- PLAY_SOUND_FRONTEND
"text", -- const char* audioName
"text", -- const char* audioRef
false, -- BOOL p2
0 -- Any p3
)Citizen.invokeNative("0x67C540AA08E4A6F5", // PLAY_SOUND_FRONTEND
"text", // const char* audioName
"text", // const char* audioRef
false, // BOOL p2
0 // Any p3
);Function.Call((Hash)0x67C540AA08E4A6F5, // PLAY_SOUND_FRONTEND
"text", // const char* audioName
"text", // const char* audioRef
false, // BOOL p2
0 // Any p3
);Related AUDIO natives
- _PLAY_SOUND_FRONTEND_WITH_SOUND_ID
- PLAY_SOUND_FROM_ENTITY
- PLAY_SOUND
- PLAY_STREAM_FRONTEND
- _PLAY_SOUND_FROM_ENTITY_WITH_SET
- _PLAY_SOUND_FROM_ITEM
- _PLAY_SOUND_FROM_POSITION
- _PLAY_SOUND_FROM_POSITION_WITH_ID
- _PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH
- PLAY_STREAM_FROM_PED
- PLAY_STREAM_FROM_POSITION
- PLAY_AMBIENT_SPEECH_FROM_POSITION_NATIVE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.