Skip to content

setRadioPlaybackState

Client-side

Available in Neon, not standard MTA

Restores a validated native GTA radio playback snapshot, including the requested seek position and queue.

Syntax

bool setRadioPlaybackState(table state)

Arguments

statetable

A 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

RELATED NEON APIS

Continue exploring

Read the system guide →