{"hash":"0x3946FC742AC305CD","ns":"PLAYER","name":"_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET","slug":"_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET","official":false,"named":true,"luaName":"AddAmbientPlayerInteractiveFocusPreset","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"player","type":"Player"},{"name":"ped","type":"Ped"},{"name":"preset","type":"const char*"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"targetEntity","type":"Entity"},{"name":"name","type":"const char*"}],"summary":"Associates a specific \"interactive focus mode preset\" between a player and a ped, with a specified location and target entity.","descriptions":[{"source":"alloc8or","format":"text","body":"Associates a specific \"interactive focus mode preset\" between a player and a ped, with a specified location and target entity.\nTo access all available presets, refer to the file located at:\n`\\update_1.rpf\\common\\data\\interactive_focus_mode_presets.meta`\nVideo: https://imgur.com/gallery/0x3946fc742ac305cd-1uJIRNr"},{"source":"vorp","format":"text","body":"Associates a specific interactive focus mode preset between a player and a ped, with a specified location and target entity.\nTo access all available presets, refer to the file located at: `/update_1.rpf/common/data/interactive_focus_mode_presets.meta`"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PLAYER/_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET.md","snippets":{"lua":"AddAmbientPlayerInteractiveFocusPreset(player, ped, preset, x, y, z, targetEntity, name)","luaInvoke":"Citizen.InvokeNative(0x3946FC742AC305CD, player, ped, preset, x, y, z, targetEntity, name)","js":"AddAmbientPlayerInteractiveFocusPreset(player, ped, preset, x, y, z, targetEntity, name);","jsInvoke":"Citizen.invokeNative('0x3946FC742AC305CD', player, ped, preset, x + 0.0000001, y + 0.0000001, z + 0.0000001, targetEntity, name);","csharp":"Function.Call((Hash)0x3946FC742AC305CD, player, ped, preset, x, y, z, 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."]}}