Gallagher Posted January 31, 2014 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
Karuzo Posted January 31, 2014 Posted January 31, 2014 https://wiki.multitheftauto.com/wiki/GetPedBonePosition Bone number 6.
Castillo Posted January 31, 2014 Posted January 31, 2014 You can use the "bone_attach" resource. Link: https://community.multitheftauto.com/in ... ls&id=2540
Moderators IIYAMA Posted January 31, 2014 Moderators 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)
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