AudioClient

findRadioStationIndex

FIND_RADIO_STATION_INDEX0x8D67489793FF428B

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

SignatureJavaScript
findRadioStationIndex(stationNameHash: Hash): number
SignatureLua
findRadioStationIndex(stationNameHash: Hash): integer

Usage

JavaScript
const result = findRadioStationIndex(stationNameHash);
Lua
local result = findRadioStationIndex(stationNameHash)

Parameters

ParameterTypeJavaScriptLua
stationNameHashHashnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Audio AUDIO
In the game
int FIND_RADIO_STATION_INDEX(Hash stationNameHash)
Hash
0x8D67489793FF428B

Open in the interactive natives reference