AudioClient

setRadioToStationIndex

SET_RADIO_TO_STATION_INDEX0xA619B168B8A8570F

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

SignatureJavaScript
setRadioToStationIndex(radioStation: number): void
SignatureLua
setRadioToStationIndex(radioStation: integer)

Usage

JavaScript
setRadioToStationIndex(radioStation);
Lua
setRadioToStationIndex(radioStation)

Parameters

ParameterTypeJavaScriptLua
radioStationintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Sets radio station by index.

Reference

Namespace
Audio AUDIO
In the game
void SET_RADIO_TO_STATION_INDEX(int radioStation)
Hash
0xA619B168B8A8570F

Open in the interactive natives reference