Jump to content

Need Help


Recommended Posts

addCommandHandler ( "bag", 
    function ( thePlayer ) 
        local bag = createObject ( 1550, 0, 0, 0 ) -- Creates an object at coordinates: 0, 0, 0 
        setElementCollisionsEnabled ( bag, false ) -- Disables the object collisions, so it won't collide with the player. 
        attachElements ( bag, thePlayer, 0, -0.3, 0.3 ) -- Attachs the object to the player that used the command. 
    end 
) 

Write "/bag" and enjoy!

Link to comment
I'm going to make a Pickup bag..and need this bag shows in the player back...not only destroy element...i want the bag shows in the player back...so what function to do that? ( bag model: 1550 )

Thanks.

How to check if the player's bending down with ( c ) key...to change the position of the bag..and how to check if the player's running..to make the bag in his back more..Thanks

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