Jump to content

Attach object only to peds hands


lolek123

Recommended Posts

Posted

What's not simple? Downloading a resource? If it's hard, then scripting is going to be difficult for you anyway and there's nothing to simplify.

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

Can you tell me what's wrong with this?

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

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