Jump to content

Attach object only to peds hands


Recommended Posts

function attachDumb(thePlayer, command) 
    createdDumb = createObject(2916, 0,0,0) 
    bonePos = getPedBonePosition(thePlayer, 25) 
    attachElements(createdDumb, thePlayer, bonePos) 
    setPedAnimation(thePlayer, "gym", "gym_free_pickup") 
addCommandHandler("dumb", attachDumb) 

Can you tell me what's wrong with this?

It shows "attempt to call global 'getPedBonePosition' (a nil value)".

Link to comment

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