{"hash":"0x829F2E2","ns":"CFX","name":"SET_PED_PROP_INDEX","slug":"SET_PED_PROP_INDEX","official":true,"named":true,"luaName":"SetPedPropIndex","game":"cfx","apiset":"server","returnType":"void","params":[{"name":"ped","type":"Ped","description":"The ped handle."},{"name":"componentId","type":"int","description":"The component that you want to set. Refer to [SET_PED_COMPONENT_VARIATION](#\\_0x262B14F48D29DE80)."},{"name":"drawableId","type":"int","description":"The drawable id that is going to be set. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\\_0x5FAF9754E789FB47)."},{"name":"textureId","type":"int","description":"The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\\_0xA6E7F1CEB523E171)."},{"name":"attach","type":"BOOL","description":"Attached or not."}],"summary":"This native is used to set prop variation on a ped.","descriptions":[{"source":"cfx","format":"md","body":"This native is used to set prop variation on a ped. Components, drawables and textures IDs are related to the ped model.\n\n### MP Freemode list of props\n\n**0**: Hats\n**1**: Glasses\n**2**: Ears\n**6**: Watches\n**7**: Bracelets\nList of Prop IDs\n\n```cpp\nenum eAnchorPoints\n{\nANCHOR_HEAD = 0, // \"p_head\"\nANCHOR_EYES = 1, // \"p_eyes\"\nANCHOR_EARS = 2, // \"p_ears\"\nANCHOR_MOUTH = 3, // \"p_mouth\"\nANCHOR_LEFT_HAND = 4, // \"p_lhand\"\nANCHOR_RIGHT_HAND = 5, // \"p_rhand\"\nANCHOR_LEFT_WRIST = 6, // \"p_lwrist\"\nANCHOR_RIGHT_WRIST = 7, // \"p_rwrist\"\nANCHOR_HIP = 8, // \"p_lhip\"\nANCHOR_LEFT_FOOT = 9, // \"p_lfoot\"\nANCHOR_RIGHT_FOOT = 10, // \"p_rfoot\"\nANCHOR_PH_L_HAND = 11, // \"ph_lhand\"\nANCHOR_PH_R_HAND = 12, // \"ph_rhand\"\nNUM_ANCHORS = 13,\n};\n```\n\n**This is the server-side RPC native equivalent of the client native [SET_PED_PROP_INDEX](?\\_0x93376B65A266EB5F).**"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/SET_PED_PROP_INDEX","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/SET_PED_PROP_INDEX.md","snippets":{"lua":"SetPedPropIndex(ped, componentId, drawableId, textureId, attach)","luaInvoke":"Citizen.InvokeNative(0x829f2e2, ped, componentId, drawableId, textureId, attach)","js":"SetPedPropIndex(ped, componentId, drawableId, textureId, attach);","jsInvoke":"Citizen.invokeNative('0x829f2e2', ped, componentId, drawableId, textureId, attach);","csharp":"Function.Call((Hash)0x829f2e2, ped, componentId, drawableId, textureId, attach);","notes":[]}}