_PLAY_SOUND_FROM_POSITION
Old name: _PLAY_SOUND_FROM_POSITION
Hash
0xCCE219C922737BFARuntime name
PlaySoundFromPositionNamespaceAUDIO
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
PLAY_SOUND_FROM_COORDSignature
void _PLAY_SOUND_FROM_POSITION(const char* audioName, float x, float y, float z, const char* audioRef, BOOL isNetwork, Any p6, BOOL isExteriorLoc, Any p8);Parameters
| Name | Type | Description |
|---|---|---|
audioName | const char* | — |
x | float | — |
y | float | — |
z | float | — |
audioRef | const char* | — |
isNetwork | BOOL | — |
p6 | Any | — |
isExteriorLoc | BOOL | — |
p8 | Any | — |
Returns void
Description
Usage
PlaySoundFromPosition(audioName, x, y, z, audioRef, isNetwork, p6, isExteriorLoc, p8)
-- always works, by hash
Citizen.InvokeNative(0xCCE219C922737BFA, audioName, x, y, z, audioRef, isNetwork, p6, isExteriorLoc, p8)JavaScript and C#
PlaySoundFromPosition(audioName, x, y, z, audioRef, isNetwork, p6, isExteriorLoc, p8);
// by hash
Citizen.invokeNative('0xCCE219C922737BFA', audioName, x + 0.0000001, y + 0.0000001, z + 0.0000001, audioRef, isNetwork, p6, isExteriorLoc, p8);Function.Call((Hash)0xCCE219C922737BFA, audioName, x, y, z, audioRef, isNetwork, p6, isExteriorLoc, p8);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.