Jump to content

Problem with attaching objects


ThePCGuy

Recommended Posts

Posted

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

Posted

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.

Posted

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!

best-for-less.gif

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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?

Posted

Post what you did.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...