{"hash":"0xCCE219C922737BFA","ns":"AUDIO","name":"_PLAY_SOUND_FROM_POSITION","slug":"_PLAY_SOUND_FROM_POSITION","official":false,"named":true,"luaName":"PlaySoundFromPosition","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"audioName","type":"const char*"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"audioRef","type":"const char*"},{"name":"isNetwork","type":"BOOL"},{"name":"p6","type":"Any"},{"name":"isExteriorLoc","type":"BOOL"},{"name":"p8","type":"Any"}],"summary":"Old name: _PLAY_SOUND_FROM_POSITION","descriptions":[{"source":"vorp","format":"text","body":"Old name: _PLAY_SOUND_FROM_POSITION"}],"examples":[],"aliases":["PLAY_SOUND_FROM_COORD"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/AUDIO/_PLAY_SOUND_FROM_POSITION","markdownUrl":"https://natives.borderlinerp.com/natives/AUDIO/_PLAY_SOUND_FROM_POSITION.md","snippets":{"lua":"PlaySoundFromPosition(audioName, x, y, z, audioRef, isNetwork, p6, isExteriorLoc, p8)","luaInvoke":"Citizen.InvokeNative(0xCCE219C922737BFA, audioName, x, y, z, audioRef, isNetwork, p6, isExteriorLoc, p8)","js":"PlaySoundFromPosition(audioName, x, y, z, audioRef, isNetwork, p6, isExteriorLoc, p8);","jsInvoke":"Citizen.invokeNative('0xCCE219C922737BFA', audioName, x + 0.0000001, y + 0.0000001, z + 0.0000001, audioRef, isNetwork, p6, isExteriorLoc, p8);","csharp":"Function.Call((Hash)0xCCE219C922737BFA, audioName, x, y, z, audioRef, isNetwork, p6, isExteriorLoc, p8);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to 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 `InvokeNative` with the hash — it always works."]}}