# AUDIO::TRIGGER_MUSIC_EVENT

- **Hash:** `0x706D57B0F50DA710`
- **Namespace:** AUDIO
- **Runtime name (Lua/JS):** `TriggerMusicEvent`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/AUDIO/TRIGGER_MUSIC_EVENT

## Signature

```c
BOOL TRIGGER_MUSIC_EVENT(const char* eventName);
```

## Parameters

- `eventName` (`const char*`)

## Returns

`BOOL`

## Description

https://github.com/femga/rdr3_discoveries/blob/master/audio/music_events/music_events.lua

## Usage

### Lua

```lua
local retval = TriggerMusicEvent(eventName)

-- always available, by hash
local retval = Citizen.InvokeNative(0x706D57B0F50DA710, eventName, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = TriggerMusicEvent(eventName);

// by hash
const retval = Citizen.invokeNative('0x706D57B0F50DA710', eventName, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x706D57B0F50DA710, eventName);
```

## See also

- [AUDIO::PREPARE_MUSIC_EVENT](https://natives.borderlinerp.com/natives/AUDIO/PREPARE_MUSIC_EVENT.md)
- [AUDIO::CANCEL_MUSIC_EVENT](https://natives.borderlinerp.com/natives/AUDIO/CANCEL_MUSIC_EVENT.md)

*Sources: alloc8or RDR3 NativeDB.*
