AudioClient

getCurrentTrackPlayTime

GET_CURRENT_TRACK_PLAY_TIME0x3E65CDE5215832C1

The 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.

SignatureJavaScript
getCurrentTrackPlayTime(radioStationName: string): number
SignatureLua
getCurrentTrackPlayTime(radioStationName: string): integer

Usage

JavaScript
const result = getCurrentTrackPlayTime(radioStationName);
Lua
local result = getCurrentTrackPlayTime(radioStationName)

Parameters

ParameterTypeJavaScriptLua
radioStationNamestringstringstring

Returns

int JavaScript number, Lua integer

Reference

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

Open in the interactive natives reference