PREPARE_SOUND_WITH_ENTITY
Hash
0x4AD019591E94C064Runtime name
PrepareSoundWithEntityNamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL PREPARE_SOUND_WITH_ENTITY(const char* soundName, Entity entity, const char* soundsetName, int soundId);Parameters
| Name | Type | Description |
|---|---|---|
soundName | const char* | — |
entity | Entity | — |
soundsetName | const char* | — |
soundId | int | — |
Returns BOOL
Usage
local retval = PrepareSoundWithEntity(soundName, entity, soundsetName, soundId)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4AD019591E94C064, soundName, entity, soundsetName, soundId, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = PrepareSoundWithEntity(soundName, entity, soundsetName, soundId);
// by hash
const retval = Citizen.invokeNative('0x4AD019591E94C064', soundName, entity, soundsetName, soundId, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x4AD019591E94C064, soundName, entity, soundsetName, soundId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.