AudioClient

getCurrentTrackSoundName

GET_CURRENT_TRACK_SOUND_NAME0x34D66BC058019CE0

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

SignatureJavaScript
getCurrentTrackSoundName(radioStationName: string): Hash
SignatureLua
getCurrentTrackSoundName(radioStationName: string): Hash

Usage

JavaScript
const hash = getCurrentTrackSoundName(radioStationName);
Lua
local hash = getCurrentTrackSoundName(radioStationName)

Parameters

ParameterTypeJavaScriptLua
radioStationNamestringstringstring

Returns

Hash JavaScript number, Lua integer

A game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.

Reference

Namespace
Audio AUDIO
In the game
Hash GET_CURRENT_TRACK_SOUND_NAME(const char* radioStationName)
Hash
0x34D66BC058019CE0
Introduced
Game build 1493 legacy numbering
Formerly
_GET_CURRENT_RADIO_TRACK_NAME

Open in the interactive natives reference