PREPARE_SOUND_WITH_ENTITY
Preloads soundName from soundsetName on soundId for playback on entity, returning true once ready.
Signature
BOOL PREPARE_SOUND_WITH_ENTITY(const char* soundName, Entity entity, const char* soundsetName, int soundId); // 0x4AD019591E94C064 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | soundName | const char* |
| 2 | entity | Entity |
| 3 | soundsetName | const char* |
| 4 | soundId | int |
Facts
| Name | PREPARE_SOUND_WITH_ENTITY |
|---|---|
| Hash | 0x4AD019591E94C064 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x4AD019591E94C064, -- PREPARE_SOUND_WITH_ENTITY
"text", -- const char* soundName
PlayerPedId(), -- Entity entity
"text", -- const char* soundsetName
0 -- int soundId
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x4AD019591E94C064", // PREPARE_SOUND_WITH_ENTITY
"text", // const char* soundName
PlayerPedId(), // Entity entity
"text", // const char* soundsetName
0, // int soundId
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x4AD019591E94C064, // PREPARE_SOUND_WITH_ENTITY
"text", // const char* soundName
API.PlayerPedId(), // Entity entity
"text", // const char* soundsetName
0 // int soundId
);Related AUDIO natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.