ThePCGuy Posted July 16, 2013 Posted July 16, 2013 Well, i've made a little script where it attaches a object to the player, but when i activate the function only i can see the object and not other people in the server, is it cause the function is in client side? EDIT: I'm using bone_attach
MIKI785 Posted July 16, 2013 Posted July 16, 2013 Yes, if it's client side then only the client where you created it will see it. Lua Scripter Owner of mshost.cz MTA portal.
ThePCGuy Posted July 16, 2013 Author Posted July 16, 2013 Could somebody explain how i use this function: getBonePositionAndRotation I need to use it to recieve the x, y, z, rx, ry, rz but i dont know how i can actually can recieve the returned value.
VoltBrad Posted July 16, 2013 Posted July 16, 2013 I can't seem to find that in the MTA Wiki. Can you link me to where you found that? Volt Host will soon be offering MTA servers at affordable prices, free webhosting included, and reduced Teamspeak rates!
Castillo Posted July 16, 2013 Posted July 16, 2013 Is from the "bone_attach" resource. getBonePositionAndRotation(ped,bone) : gets position and rotation of the ped bone. Client-only function.Returns bone x,y,z position and rotation if ped is streamed in and bone number is valid, false otherwise. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
ThePCGuy Posted July 16, 2013 Author Posted July 16, 2013 http://crystalmv.net84.net/pages/script ... attach.php
ThePCGuy Posted July 16, 2013 Author Posted July 16, 2013 Well, i tried it. But it gives a error attempt to index global 'result' (a number value) Could somebody give me a correct example for this function?
Castillo Posted July 16, 2013 Posted July 16, 2013 Post what you did. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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