The Lab
AUDIO native

_PLAY_SOUND_FROM_POSITION_WITH_ID

returns void9 paramsbuild 1207

Plays soundName from soundsetName on soundId at the given world coordinates.

Get an id with GET_SOUND_ID and release it with RELEASE_SOUND_ID afterwards.

Signature

C
void _PLAY_SOUND_FROM_POSITION_WITH_ID(int soundId, const char* soundName, float x, float y, float z, const char* soundsetName, BOOL p6, int p7, BOOL p8); // 0xDCF5BA95BBF0FABA b1207

Parameters

#NameType
1soundIdint
2soundNameconst char*
3xfloat
4yfloat
5zfloat
6soundsetNameconst char*
7p6BOOL
8p7int
9p8BOOL

Facts

Facts about _PLAY_SOUND_FROM_POSITION_WITH_ID
Name
_PLAY_SOUND_FROM_POSITION_WITH_ID
Hash
0xDCF5BA95BBF0FABA
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xDCF5BA95BBF0FABA, -- _PLAY_SOUND_FROM_POSITION_WITH_ID
  0, -- int soundId
  "text", -- const char* soundName
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  "text", -- const char* soundsetName
  false, -- BOOL p6
  0, -- int p7
  false -- BOOL p8
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xDCF5BA95BBF0FABA", // _PLAY_SOUND_FROM_POSITION_WITH_ID
  0, // int soundId
  "text", // const char* soundName
  0.0, // float x
  0.0, // float y
  0.0, // float z
  "text", // const char* soundsetName
  false, // BOOL p6
  0, // int p7
  false // BOOL p8
);
C#
Function.Call((Hash)0xDCF5BA95BBF0FABA, // _PLAY_SOUND_FROM_POSITION_WITH_ID
  0, // int soundId
  "text", // const char* soundName
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  "text", // const char* soundsetName
  false, // BOOL p6
  0, // int p7
  false // BOOL p8
);
All AUDIO natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.