AudioClient

setRadioTrack

SET_RADIO_TRACK0xB39786F201FEE30B

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

SignatureJavaScript
setRadioTrack(radioStation: string, radioTrack: string): void
SignatureLua
setRadioTrack(radioStation: string, radioTrack: string)

Usage

JavaScript
setRadioTrack(radioStation, radioTrack);
Lua
setRadioTrack(radioStation, radioTrack)

Parameters

ParameterTypeJavaScriptLua
radioStationstringstringstring
radioTrackstringstringstring

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.

Only found this one in the decompiled scripts:

setRadioTrack("RADIO_03_HIPHOP_NEW", "ARM1_RADIO_STARTS");

Reference

Namespace
Audio AUDIO
In the game
void SET_RADIO_TRACK(const char* radioStation, const char* radioTrack)
Hash
0xB39786F201FEE30B

Open in the interactive natives reference