AudioClient

getPlayerRadioStationIndex

GET_PLAYER_RADIO_STATION_INDEX0xE8AF77C4C06ADC93

The 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.

SignatureJavaScript
getPlayerRadioStationIndex(): number
SignatureLua
getPlayerRadioStationIndex(): integer

Usage

JavaScript
const result = getPlayerRadioStationIndex();
Lua
local result = getPlayerRadioStationIndex()

Parameters

None.

Returns

int JavaScript number, Lua integer

Notes

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

Open in the interactive natives reference