getCurrentTrackPlayTime
GET_CURRENT_TRACK_PLAY_TIME0x3E65CDE5215832C1The GTA V native GET_CURRENT_TRACK_PLAY_TIME of the AUDIO namespace, as LS:MP client scripts call it: the global function getCurrentTrackPlayTime, in JavaScript and in Lua.
getCurrentTrackPlayTime(radioStationName: string): numbergetCurrentTrackPlayTime(radioStationName: string): integerUsage
JavaScript
const result = getCurrentTrackPlayTime(radioStationName);Lua
local result = getCurrentTrackPlayTime(radioStationName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
radioStationName | string | string | string |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Audio AUDIO
- In the game
int GET_CURRENT_TRACK_PLAY_TIME(const char* radioStationName)- Hash
0x3E65CDE5215832C1- Introduced
- Game build 1493 legacy numbering
- Formerly
_GET_CURRENT_RADIO_TRACK_PLAYBACK_TIME