Dolinho Posted March 20, 2016 Share Posted March 20, 2016 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
Addlibs Posted March 20, 2016 Share Posted March 20, 2016 Line 5, you cannot use local if you're indexing/editing a table Link to comment
Dolinho Posted March 20, 2016 Author Share Posted March 20, 2016 Thanks for the help Mr Tasty Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now