CANCEL_MUSIC_EVENT
Cancels the music event eventName and returns true on success.
Signature
BOOL CANCEL_MUSIC_EVENT(const char* eventName); // 0x5B17A90291133DA5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | eventName | const char* |
Facts
| Name | CANCEL_MUSIC_EVENT |
|---|---|
| Hash | 0x5B17A90291133DA5 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x5B17A90291133DA5, -- CANCEL_MUSIC_EVENT
"text" -- const char* eventName
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x5B17A90291133DA5", // CANCEL_MUSIC_EVENT
"text", // const char* eventName
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x5B17A90291133DA5, // CANCEL_MUSIC_EVENT
"text" // const char* eventName
);Related AUDIO natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.