getCurrentTrackSoundName
GET_CURRENT_TRACK_SOUND_NAME0x34D66BC058019CE0The 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.
getCurrentTrackSoundName(radioStationName: string): HashgetCurrentTrackSoundName(radioStationName: string): HashUsage
JavaScript
const hash = getCurrentTrackSoundName(radioStationName);Lua
local hash = getCurrentTrackSoundName(radioStationName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
radioStationName | string | string | string |
Returns
Hash JavaScript number, Lua integerA 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