AudioClient

getRadioStationName

GET_RADIO_STATION_NAME0xB28ECA15046CA8B9

The GTA V native GET_RADIO_STATION_NAME of the AUDIO namespace, as LS:MP client scripts call it: the global function getRadioStationName, in JavaScript and in Lua.

SignatureJavaScript
getRadioStationName(radioStation: number): string
SignatureLua
getRadioStationName(radioStation: integer): string

Usage

JavaScript
const text = getRadioStationName(radioStation);
Lua
local text = getRadioStationName(radioStation)

Parameters

ParameterTypeJavaScriptLua
radioStationintnumberinteger

Returns

string JavaScript string, Lua string

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Converts radio station index to string. Use getFilenameForAudioConversation to get the user-readable text.

Reference

Namespace
Audio AUDIO
In the game
const char* GET_RADIO_STATION_NAME(int radioStation)
Hash
0xB28ECA15046CA8B9

Open in the interactive natives reference