{"hash":"0xD48227263E3D06AE","ns":"PLAYER","name":"_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS","slug":"_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS","official":false,"named":true,"luaName":"AddAmbientPlayerInteractiveFocusPresetAtCoords","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"player","type":"Player"},{"name":"x1","type":"float"},{"name":"y1","type":"float"},{"name":"z1","type":"float"},{"name":"preset","type":"const char*"},{"name":"x2","type":"float"},{"name":"y2","type":"float"},{"name":"z2","type":"float"},{"name":"targetEntity","type":"Entity"},{"name":"name","type":"const char*"}],"summary":"Adds an \"interactive focus mode preset\" between a player and a specific set of coordinates with a target entity.","descriptions":[{"source":"alloc8or","format":"text","body":"Adds an \"interactive focus mode preset\" between a player and a specific set of coordinates with a target entity.\nTo access all available presets, refer to the file located at:\n`\\update_1.rpf\\common\\data\\interactive_focus_mode_presets.meta`\n\nRelated function:\n- _DISABLE_PLAYER_INTERACTIVE_FOCUS_PRESET (0xC67A4910425F11F1)\n\nVideo: https://imgur.com/gallery/0xd48227263e3d06ae-SUJhMoA"},{"source":"vorp","format":"text","body":"Adds an interactive focus mode preset between a player and a specific set of coordinates with a target entity.\nTo access all available presets, refer to the file located at:update_1.rpf.common.data.interactive_focus_mode_presets.meta"}],"examples":[{"lang":"lua","code":"AddPlayerInteractiveFocusPresetAtCoords(PlayerId(),GetEntityCoords(PlayerPedId()),'ForcedILONoIcon',0.0,0.0,0.0,PlayerPedId(),'text')","source":"vorp"}],"aliases":[],"enums":[],"related":[],"build":"1232","sources":["alloc8or","vorp"],"doc":3,"url":"https://natives.borderlinerp.com/natives/PLAYER/_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS.md","snippets":{"lua":"AddAmbientPlayerInteractiveFocusPresetAtCoords(player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name)","luaInvoke":"Citizen.InvokeNative(0xD48227263E3D06AE, player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name)","js":"AddAmbientPlayerInteractiveFocusPresetAtCoords(player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name);","jsInvoke":"Citizen.invokeNative('0xD48227263E3D06AE', player, x1 + 0.0000001, y1 + 0.0000001, z1 + 0.0000001, preset, x2 + 0.0000001, y2 + 0.0000001, z2 + 0.0000001, targetEntity, name);","csharp":"Function.Call((Hash)0xD48227263E3D06AE, player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name);","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."]}}