RedM Natives

TRIGGER_MUSIC_EVENT

Hash0x706D57B0F50DA710
Runtime nameTriggerMusicEvent
NamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x706D57B0F50DA710

Signature

BOOL TRIGGER_MUSIC_EVENT(const char* eventName);

Parameters

NameTypeDescription
eventNameconst char*—

Returns BOOL

Description

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

Usage

Lua
local retval = TriggerMusicEvent(eventName)

-- always works, by hash
local retval = Citizen.InvokeNative(0x706D57B0F50DA710, eventName, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = TriggerMusicEvent(eventName);

// by hash
const retval = Citizen.invokeNative('0x706D57B0F50DA710', eventName, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x706D57B0F50DA710, eventName);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.