getPlayerRadioStationIndex
GET_PLAYER_RADIO_STATION_INDEX0xE8AF77C4C06ADC93The GTA V native GET_PLAYER_RADIO_STATION_INDEX of the AUDIO namespace, as LS:MP client scripts call it: the global function getPlayerRadioStationIndex, in JavaScript and in Lua.
getPlayerRadioStationIndex(): numbergetPlayerRadioStationIndex(): integerUsage
JavaScript
const result = getPlayerRadioStationIndex();Lua
local result = getPlayerRadioStationIndex()Parameters
None.
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns 255 (radio off index) if the function fails.
Reference
- Namespace
- Audio AUDIO
- In the game
int GET_PLAYER_RADIO_STATION_INDEX()- Hash
0xE8AF77C4C06ADC93