getRadioStationName
GET_RADIO_STATION_NAME0xB28ECA15046CA8B9The 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.
getRadioStationName(radioStation: number): stringgetRadioStationName(radioStation: integer): stringUsage
JavaScript
const text = getRadioStationName(radioStation);Lua
local text = getRadioStationName(radioStation)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
radioStation | int | number | integer |
Returns
string JavaScript string, Lua stringNotes
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