Skip to content

requestMissionAudio

Client-side

Available in Neon, not standard MTA

Preloads a supported GTA script-audio event and returns a resource-owned opaque handle.

Syntax

int|false requestMissionAudio(int eventId)

Arguments

eventIdint

Native event in 1800..1829 or 2000..45400; custom event 65535 is rejected.

Returns

An opaque generation-scoped handle, or false when the event is unsupported or all four native slots are occupied.

Ownership and lifecycle

Mission-audio handles belong to the resource generation that created them and are released on stop. Mission-passed tunes are local one-shot frontend tracks and create no handle.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →