AudioClient

hasSoundFinished

HAS_SOUND_FINISHED0xFCBDCE714A7C88E5

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

SignatureJavaScript
hasSoundFinished(soundId: number): boolean
SignatureLua
hasSoundFinished(soundId: integer): boolean

Usage

JavaScript
const result = hasSoundFinished(soundId);
Lua
local result = hasSoundFinished(soundId)

Parameters

ParameterTypeJavaScriptLua
soundIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Audio AUDIO
In the game
BOOL HAS_SOUND_FINISHED(int soundId)
Hash
0xFCBDCE714A7C88E5

Open in the interactive natives reference