AudioClient

getMusicPlaytime

GET_MUSIC_PLAYTIME0xE7A0D23DC414507B

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

SignatureJavaScript
getMusicPlaytime(): number
SignatureLua
getMusicPlaytime(): integer

Usage

JavaScript
const result = getMusicPlaytime();
Lua
local result = getMusicPlaytime()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Audio AUDIO
In the game
int GET_MUSIC_PLAYTIME()
Hash
0xE7A0D23DC414507B

Open in the interactive natives reference