AudioClient

linkStaticEmitterToEntity

LINK_STATIC_EMITTER_TO_ENTITY0x651D3228960D08AF

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

SignatureJavaScript
linkStaticEmitterToEntity(emitterName: string, entity: Entity): void
SignatureLua
linkStaticEmitterToEntity(emitterName: string, entity: Entity)

Usage

JavaScript
linkStaticEmitterToEntity(emitterName, entity);
Lua
linkStaticEmitterToEntity(emitterName, entity)

Parameters

ParameterTypeJavaScriptLua
emitterNamestringstringstring
entityEntitynumberinteger

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.

Reference

Namespace
Audio AUDIO
In the game
void LINK_STATIC_EMITTER_TO_ENTITY(const char* emitterName, Entity entity)
Hash
0x651D3228960D08AF
Introduced
Game build 505 legacy numbering
Formerly
_LINK_STATIC_EMITTER_TO_ENTITY

Open in the interactive natives reference