Native referenceRedM

PREPARE_MUSIC_EVENT

0x1E5185B72EF5158A AUDIO
FUNCTION SIGNATURE
BOOL PREPARE_MUSIC_EVENT(char* eventName);
Property Value
Native Name PREPARE_MUSIC_EVENT
Hash 0x1E5185B72EF5158A
Return Type BOOL
Build 1207
Parameters eventName (char*)

Description: Prepares the specified music event. Preparing it in advance will preload any required data so that it's ready to play immediately.

Usage

Lua (Direct):

local result = PrepareMusicEvent(eventName)

Lua (Hash):

local result = Citizen.InvokeNative(0x1E5185B72EF5158A, eventName)
Back to AUDIO