Jump to content

bodypart [HELP]


Gallagher

Recommended Posts

  • Moderators

Damn, you guys are fast in posting. :shock:

local object = createObject ( 1337, 0, 0, 0, 0, 0, 0 ) 
setElementCollidableWith ( localPlayer, object,false) 
  
addEventHandler("onClientPreRender",root, 
function () 
    local xr,yr,zr = getElementRotation(localPlayer) 
    local x,y,z = getPedBonePosition (localPlayer,8 ) 
    setElementPosition(object,x,y,z) 
    setElementRotation(object,xr,yr,zr) 
end) 

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