Skip to content

getRadioPlaybackState

Client-side

Available in Neon, not standard MTA

Captures GTA's current native radio station, track, playback position, flags, and queued track state.

Syntax

table|false getRadioPlaybackState()

Returns

A complete playback snapshot with radioOn, station, mode, trackId, trackType, trackIndex, position, length, flags and queue; false when the native 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
  • This is GTA radio state, not an MTA sound element.
  • The snapshot is client-local until a resource chooses to synchronize it.

Example

local saved = getRadioPlaybackState()
-- later
if saved then setRadioPlaybackState(saved) end

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →