AudioClient

addEntityToAudioMixGroup

ADD_ENTITY_TO_AUDIO_MIX_GROUP0x153973AB99FE8980

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

SignatureJavaScript
addEntityToAudioMixGroup(entity: Entity, groupName: string, p2: number): void
SignatureLua
addEntityToAudioMixGroup(entity: Entity, groupName: string, p2: number)

Usage

JavaScript
addEntityToAudioMixGroup(entity, groupName, p2);
Lua
addEntityToAudioMixGroup(entity, groupName, p2)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
groupNamestringstringstring
p2floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

All found occurrences in b678d:
https://pastebin.com/ceu67jz8

Reference

Namespace
Audio AUDIO
In the game
void ADD_ENTITY_TO_AUDIO_MIX_GROUP(Entity entity, const char* groupName, float p2)
Hash
0x153973AB99FE8980
Formerly
_DYNAMIC_MIXER_RELATED_FN

Open in the interactive natives reference