Gallagher Posted January 31, 2014 Share Posted January 31, 2014 Hello! I want to attach a object in the player's head, but I do not think any example of bodypart can help me? thank you Link to comment
Karuzo Posted January 31, 2014 Share Posted January 31, 2014 https://wiki.multitheftauto.com/wiki/GetPedBonePosition Bone number 6. Link to comment
Castillo Posted January 31, 2014 Share Posted January 31, 2014 You can use the "bone_attach" resource. Link: https://community.multitheftauto.com/in ... ls&id=2540 Link to comment
Moderators IIYAMA Posted January 31, 2014 Moderators Share Posted January 31, 2014 Damn, you guys are fast in posting. local object = createObject ( 1337, 0, 0, 0, 0, 0, 0 ) setElementCollidableWith ( localPlayer, object,false) addEventHandler("onClientPreRender",root, function () local xr,yr,zr = getElementRotation(localPlayer) local x,y,z = getPedBonePosition (localPlayer,8 ) setElementPosition(object,x,y,z) setElementRotation(object,xr,yr,zr) end) Link to comment
Gallagher Posted January 31, 2014 Author Share Posted January 31, 2014 thank you again! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now