Jump to content

Attaching rope to entities


crying_bae

Recommended Posts

Does anybody managed to attach rope to entities? 
I managed only to create rope but it is invisible - only shadow is visible.

 

mp.events.add('attachRopeToVehicleAndPlayer', (vehicle) => {
    mp.gui.chat.push(new Date() + '');
    let player = mp.players.local;
    let rope = mp.game.rope.addRope(player.position.x,
        player.position.y,
        player.position.z,
        0,
        0,
        0,
        20.0,
        4,
        20.0,
        10.0,
        0,
        false,
        false,
        false,
        5.0,
        false,
    0);
    mp.game.rope.attachEntitiesToRope(rope, vehicle.handle, player.handle, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 10.0, false, false, 0, 0);
});

 

https://i.gyazo.com/7f66f6f625e4d69108b4b7dc1dafd90c.gif 7f66f6f625e4d69108b4b7dc1dafd90c.gif

Link to comment
Share on other sites

  • 6 months later...
  • 3 months later...
  • 1 year later...

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