Sharingan Posted November 28, 2011 Share Posted November 28, 2011 Is possible to attach an object to a certain bone of the player? Link to comment
12p Posted November 28, 2011 Share Posted November 28, 2011 (edited) getLocalPlayer getPedBonePosition setElementPosition "onClientRender"/"onClientPreRender"/setTimer You can do this client-side without problems. Also you can do it server-side, but it will take more CPU from both client and server, so I suggest you do this client-only. NOTE: To make the object rotate in the direction of the bone, you must get the position of 2 bones. For example, for the right hand: You will need to get the position of the bone 25 and the bone 23, then use THIS FUNCTION: https://wiki.multitheftauto.com/wiki/FindRotation Edited November 28, 2011 by Guest Link to comment
Sharingan Posted November 28, 2011 Author Share Posted November 28, 2011 Thanks man, but I've just found some resource. For some people that they has the same problem, the link is: https://community.multitheftauto.com/index.php?p= ... ls&id=2540 Mods, you can close this. 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