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 San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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