{"hash":"0xB35370D5353995CB","ns":"TASK","name":"_SET_ITEM_INTERACTION_STATE","slug":"_SET_ITEM_INTERACTION_STATE","official":false,"named":true,"luaName":"SetItemInteractionState","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"itemInteractionState","type":"Hash"},{"name":"p2","type":"float"}],"summary":"All Interaction states","descriptions":[{"source":"alloc8or","format":"text","body":"All Interaction states\nhttps://github.com/abdulkadiraktas/rdr3_discoveries/tree/master/tasks/ItemInteraction#4-item_interaction_state_name--item_interaction_propid"},{"source":"vorp","format":"text","body":"All Interaction states\nhttps://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_ITEM_INTERACTION#-4-item_interaction_state_name--item_interaction_propid--1"}],"examples":[],"aliases":[],"enums":[],"related":["0x6AA3DCA2C6F5EB6D"],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_SET_ITEM_INTERACTION_STATE","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_SET_ITEM_INTERACTION_STATE.md","snippets":{"lua":"SetItemInteractionState(ped, itemInteractionState, p2)","luaInvoke":"Citizen.InvokeNative(0xB35370D5353995CB, ped, itemInteractionState, p2)","js":"SetItemInteractionState(ped, itemInteractionState, p2);","jsInvoke":"Citizen.invokeNative('0xB35370D5353995CB', ped, itemInteractionState, p2 + 0.0000001);","csharp":"Function.Call((Hash)0xB35370D5353995CB, ped, itemInteractionState, p2);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}