AudioClient

setRadioTrackWithStartOffset

SET_RADIO_TRACK_WITH_START_OFFSET0x2CB0075110BE1E56

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

SignatureJavaScript
setRadioTrackWithStartOffset(
  radioStationName: string,
  mixName: string,
  p2: number
): void
SignatureLua
setRadioTrackWithStartOffset(
  radioStationName: string,
  mixName: string,
  p2: integer
)

Usage

JavaScript
setRadioTrackWithStartOffset(radioStationName, mixName, p2);
Lua
setRadioTrackWithStartOffset(radioStationName, mixName, p2)

Parameters

ParameterTypeJavaScriptLua
radioStationNamestringstringstring
mixNamestringstringstring
p2intnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void SET_RADIO_TRACK_WITH_START_OFFSET(const char* radioStationName, const char* mixName, int p2)
Hash
0x2CB0075110BE1E56
Introduced
Game build 1493 legacy numbering
Formerly
_SET_RADIO_TRACK_MIX

Open in the interactive natives reference