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

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.

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?

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...