{"hash":"0xCE7A6C1D5CDE1F9D","ns":"PED","name":"_PROPITEM_PLAY_CONDITIONAL_ANIM_WITH_OBJECT","slug":"_PROPITEM_PLAY_CONDITIONAL_ANIM_WITH_OBJECT","official":false,"named":true,"luaName":"PropitemPlayConditionalAnimWithObject","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"targetEntity","type":"Entity"},{"name":"propItemId","type":"const char*"},{"name":"conditionalAnimName","type":"const char*"}],"summary":"Plays a conditional locomotion animation with a prop item (commonly used for carry/attach interactions like crates).","descriptions":[{"source":"alloc8or","format":"text","body":"Plays a conditional locomotion animation with a prop item (commonly used for carry/attach interactions like crates).\n\nNotes:\n- propItemId is a ConditionalAnims.propitem identifier (e.g. \"P_CS_CRATETNT01X_PH_R_HAND\").\n- conditionalAnimName is the conditional locomotion anim name/key (e.g. \"LOCO_ATTACH_CRATE_TNT\").\n- targetEntity is the linked/context entity (often the object being manipulated).\n- This primarily drives the conditional anim + propitem state; scripts often still attach/detach the physical entity manually.\n- Pair with _REMOVE_CONDITIONAL_ANIM_PROPITEM to stop/clear the state.\n- Example video: https://imgur.com/a/1H3xmbv"},{"source":"vorp","format":"text","body":"Plays a conditional locomotion animation with an attached prop item,commonly used for LOCO attachment interactions (e.g., attaching/carrying a crate) ex conditionalAnimName: LOCO_ATTACH_CRATE_TNT"}],"examples":[],"aliases":["_PLAY_CONDITIONAL_ANIM_WITH_PROPITEM"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_PROPITEM_PLAY_CONDITIONAL_ANIM_WITH_OBJECT","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_PROPITEM_PLAY_CONDITIONAL_ANIM_WITH_OBJECT.md","snippets":{"lua":"PropitemPlayConditionalAnimWithObject(ped, targetEntity, propItemId, conditionalAnimName)","luaInvoke":"Citizen.InvokeNative(0xCE7A6C1D5CDE1F9D, ped, targetEntity, propItemId, conditionalAnimName)","js":"PropitemPlayConditionalAnimWithObject(ped, targetEntity, propItemId, conditionalAnimName);","jsInvoke":"Citizen.invokeNative('0xCE7A6C1D5CDE1F9D', ped, targetEntity, propItemId, conditionalAnimName);","csharp":"Function.Call((Hash)0xCE7A6C1D5CDE1F9D, ped, targetEntity, propItemId, conditionalAnimName);","notes":["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."]}}