{"hash":"0xDCF5BA95BBF0FABA","ns":"AUDIO","name":"_PLAY_SOUND_FROM_POSITION_WITH_ID","slug":"_PLAY_SOUND_FROM_POSITION_WITH_ID","official":false,"named":true,"luaName":"PlaySoundFromPositionWithId","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"soundId","type":"int"},{"name":"soundName","type":"const char*"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"soundsetName","type":"const char*"},{"name":"p6","type":"BOOL"},{"name":"p7","type":"int"},{"name":"p8","type":"BOOL"}],"summary":"Starts Audio Loop _PLAY_SOUND_FROM_ENTITY* - _PLAY_SOUND_FRONTEND*","descriptions":[{"source":"alloc8or","format":"text","body":"Starts Audio Loop\n_PLAY_SOUND_FROM_ENTITY* - _PLAY_SOUND_FRONTEND*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/AUDIO/_PLAY_SOUND_FROM_POSITION_WITH_ID","markdownUrl":"https://natives.borderlinerp.com/natives/AUDIO/_PLAY_SOUND_FROM_POSITION_WITH_ID.md","snippets":{"lua":"PlaySoundFromPositionWithId(soundId, soundName, x, y, z, soundsetName, p6, p7, p8)","luaInvoke":"Citizen.InvokeNative(0xDCF5BA95BBF0FABA, soundId, soundName, x, y, z, soundsetName, p6, p7, p8)","js":"PlaySoundFromPositionWithId(soundId, soundName, x, y, z, soundsetName, p6, p7, p8);","jsInvoke":"Citizen.invokeNative('0xDCF5BA95BBF0FABA', soundId, soundName, x + 0.0000001, y + 0.0000001, z + 0.0000001, soundsetName, p6, p7, p8);","csharp":"Function.Call((Hash)0xDCF5BA95BBF0FABA, soundId, soundName, x, y, z, soundsetName, p6, p7, 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."]}}