Jump to content

Recommended Posts

  • 7 months later...
Posted
Am 18.6.2020 um 10:46 schrieb aLLeN92:

The code was attached are inside a function, so this function is called on the command event,


try to create the object in a function and calling inside your command event, let me know!

 

 

Hello is there a list of attatchments for Ragemp?

 

  • 1 year later...
Posted (edited)

primero es crear el objeto y despues tienen que hacer un tiempo de espera antes de adjuntar el objeto de lo contrario quedara flotando ejemplo:

           
            var object = mp.objects.new(mp.game.joaat(info.model), player.position, {
                dimension: player.dimension
            });
 


        setTimeout(function(){
                object.attachTo(player.handle,
                    player.getBoneIndex(info.attachInfo.bone),
                    pos[0], pos[1], pos[2],
                    rot[0], rot[1], rot[2],
                    false, false, false, false, 2, true)
            },150);

 

Edited by neuk12

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