RedM Natives

PREPARE_MUSIC_EVENT

Hash0x1E5185B72EF5158A
Runtime namePrepareMusicEvent
NamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1E5185B72EF5158A

Signature

BOOL PREPARE_MUSIC_EVENT(const char* eventName);

Parameters

NameTypeDescription
eventNameconst char*—

Returns BOOL

Usage

Lua
local retval = PrepareMusicEvent(eventName)

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

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

See also

Sources

alloc8or RDR3 NativeDB

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