setRadioPlaybackState
Client-side
Restores a validated native GTA radio playback snapshot, including the requested seek position and queue.
Syntax
bool setRadioPlaybackState(table state)Arguments
statetableA complete snapshot compatible with getRadioPlaybackState().
Returns
true when GTA accepted the requested playback state; false when the snapshot is incomplete, out of range, or the manager is unavailable.
Ownership and lifecycle
The snapshot describes one client's native GTA radio manager. Neon does not synchronize it automatically; a resource that wants shared playback must relay and restore snapshots itself.
Important behavior
- Neon lets GTA finish its asynchronous stopping transition before applying the requested restore, avoiding silent restore races.
Where this comes from
SOURCECLuaRadioPlaybackDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaRadioPlaybackDefs.cpp INTRODUCED / EXTENDEDebd8931b9Read the commit and why the change was made TEST RESOURCE native-radio-playback test-resources/native-radio-playback
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Native GTA radio playback works →