Statebags
biyeiRadioplayer{ on: boolean, connected: boolean, frequency: number|nil, transmitting: boolean, streamer: boolean }Replicated on LocalPlayer.state, kept in sync with the radio's own state. Readable from any resource, client or server.
Lua
-- client (own player)
local r = LocalPlayer.state.biyeiRadio
if r and r.transmitting then ... end
-- server or another client (by serverId)
local r = Player(serverId).state.biyeiRadio