_PLAY_SOUND_FROM_POSITION_WITH_ID
Starts Audio Loop _PLAY_SOUND_FROM_ENTITY* - _PLAY_SOUND_FRONTEND*
Hash
0xDCF5BA95BBF0FABARuntime name
PlaySoundFromPositionWithIdNamespaceAUDIO
SideClient
NameCommunity guess
Docs
Since build1207
Signature
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);Parameters
| Name | Type | Description |
|---|---|---|
soundId | int | — |
soundName | const char* | — |
x | float | — |
y | float | — |
z | float | — |
soundsetName | const char* | — |
p6 | BOOL | — |
p7 | int | — |
p8 | BOOL | — |
Returns void
Description
Starts Audio Loop
_PLAY_SOUND_FROM_ENTITY* - _PLAY_SOUND_FRONTEND*
Usage
PlaySoundFromPositionWithId(soundId, soundName, x, y, z, soundsetName, p6, p7, p8)
-- always works, by hash
Citizen.InvokeNative(0xDCF5BA95BBF0FABA, soundId, soundName, x, y, z, soundsetName, p6, p7, p8)JavaScript and C#
PlaySoundFromPositionWithId(soundId, soundName, x, y, z, soundsetName, p6, p7, p8);
// by hash
Citizen.invokeNative('0xDCF5BA95BBF0FABA', soundId, soundName, x + 0.0000001, y + 0.0000001, z + 0.0000001, soundsetName, p6, p7, p8);Function.Call((Hash)0xDCF5BA95BBF0FABA, soundId, soundName, x, y, z, soundsetName, p6, p7, 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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.