The Lab
AUDIO native

_PLAY_SOUND_FROM_POSITION

returns void9 paramsbuild 1207

Plays the sound audioName from audioRef at the given world coordinates, optionally networked.

Signature

C
void _PLAY_SOUND_FROM_POSITION(const char* audioName, float x, float y, float z, const char* audioRef, BOOL isNetwork, Any p6, BOOL p7, Any p8); // 0xCCE219C922737BFA b1207

Parameters

#NameType
1audioNameconst char*
2xfloat
3yfloat
4zfloat
5audioRefconst char*
6isNetworkBOOL
7p6Any
8p7BOOL
9p8Any

Facts

Facts about _PLAY_SOUND_FROM_POSITION
Name
_PLAY_SOUND_FROM_POSITION
Hash
0xCCE219C922737BFA
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(0xCCE219C922737BFA, -- _PLAY_SOUND_FROM_POSITION
  "text", -- const char* audioName
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  "text", -- const char* audioRef
  false, -- BOOL isNetwork
  0, -- Any p6
  false, -- BOOL p7
  0 -- Any p8
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xCCE219C922737BFA", // _PLAY_SOUND_FROM_POSITION
  "text", // const char* audioName
  0.0, // float x
  0.0, // float y
  0.0, // float z
  "text", // const char* audioRef
  false, // BOOL isNetwork
  0, // Any p6
  false, // BOOL p7
  0 // Any p8
);
C#
Function.Call((Hash)0xCCE219C922737BFA, // _PLAY_SOUND_FROM_POSITION
  "text", // const char* audioName
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  "text", // const char* audioRef
  false, // BOOL isNetwork
  0, // Any p6
  false, // BOOL p7
  0 // Any p8
);
All AUDIO natives

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