The Lab
AUDIO native

PREPARE_MUSIC_EVENT

returns BOOL1 parambuild 1207

Preloads the music event eventName and returns true once it is ready.

Signature

C
BOOL PREPARE_MUSIC_EVENT(const char* eventName); // 0x1E5185B72EF5158A b1207

Parameters

#NameType
1eventNameconst char*

Facts

Facts about PREPARE_MUSIC_EVENT
Name
PREPARE_MUSIC_EVENT
Hash
0x1E5185B72EF5158A
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x1E5185B72EF5158A, -- PREPARE_MUSIC_EVENT
  "text" -- const char* eventName
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x1E5185B72EF5158A", // PREPARE_MUSIC_EVENT
  "text", // const char* eventName
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x1E5185B72EF5158A, // PREPARE_MUSIC_EVENT
  "text" // const char* eventName
);
All AUDIO natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.