Jump to content

Attaching ped to ped


Resmurf

Recommended Posts

Hello!

I'm trying to create a ped and attach it to a the ped. I do wait for the ped to streamIn before attaching it but unfrotunately when the function runs, the fish ped disappears?

Any help wil be much appreciated.

 

    const playerCoord = mp.players.local.position
    const hash = mp.game.joaat(model)
    const fish = mp.peds.new(hash, playerCoord, 270.0, mp.players.local.dimension);
 
    setTimeout(() =>{
        fish.attachTo(mp.players.local.handle, 1, playerCoord.x, playerCoord.y, playerCoord.z, 0.0, 0.0, 0.0, true, false, false, true, 0, true)
    }, 10000)
Link to comment
Share on other sites

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