isMissionAudioLoaded
Client-side
Reports whether an owned native mission-audio event has finished loading.
Syntax
bool isMissionAudioLoaded(int handle)Arguments
handleintOpaque handle returned by requestMissionAudio.
Returns
true once loaded; false for pending, stale, foreign, or lost slots.
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.
Important behavior
- While an owned unplayed event remains pending, polling periodically re-arms a native hardware request that GTA may silently drop.
Where this comes from
SOURCECLuaAudioDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaAudioDefs.cpp INTRODUCED / EXTENDED28b42898bRead the commit and why the change was made RELATED CATEGORY HARNESS native-mission-audio-test Category-level coverage · test-resources/native-mission-audio-test
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Native mission and frontend audio works →