RedM Natives

PLAY_SOUND_FROM_ENTITY

Hash0x6FB1DA3CA9DA7D90
Runtime namePlaySoundFromEntity
NamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207

Signature

void PLAY_SOUND_FROM_ENTITY(const char* audioName, Entity entity, const char* audioRef, BOOL isNetwork, Any p4, Any p5);

Parameters

NameTypeDescription
audioNameconst char*—
entityEntity—
audioRefconst char*—
isNetworkBOOL—
p4Any—
p5Any—

Returns void

Usage

Lua
PlaySoundFromEntity(audioName, entity, audioRef, isNetwork, p4, p5)

-- always works, by hash
Citizen.InvokeNative(0x6FB1DA3CA9DA7D90, audioName, entity, audioRef, isNetwork, p4, p5)
JavaScript and C#
JavaScript
PlaySoundFromEntity(audioName, entity, audioRef, isNetwork, p4, p5);

// by hash
Citizen.invokeNative('0x6FB1DA3CA9DA7D90', audioName, entity, audioRef, isNetwork, p4, p5);
C#
Function.Call((Hash)0x6FB1DA3CA9DA7D90, audioName, entity, audioRef, isNetwork, p4, p5);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.