Jump to content

Hat Error


Dolinho

Recommended Posts

I do not understand why not work, it seems so simple.

Anyone can help me ?

local pObjectam  = { } 
  
function onChapeu(player, cmd, obtj) 
local x, y, z = getElementPosition( player ) 
local pObjectam [player] = createObject( 1318, x, y, z+0.2, 0, 0, 0) 
setObjectScale ( pObjectam [player], 0.5) 
exports.bone_attach:attachElementToBone( pObjectam [player], player, 6, 0, 0.67, - 0.05, -90, 0, 0 ) 
end 
addCommandHandler ( "hat", onChapeu ) 

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