Log in to reply
 

How do you become this ped without a mod?



  • Menyoo has an option called Become this Ped (steal soul).

    There is a function to change the player model, but does anyone know a function (not a mod) which allows the player to change into a ped, one that has been spawned by a script.

    So Game.Player.Character takes over/becomes PedNo1 for example.

    I'd like to be able to switch back and forth between one or more scripted Peds.

    Have searched the Natives database but nothing came up that seemed related.



  • @JohnFromGWN . Doing a text search on Menyoo source spits up:

    ok, i think i found something i can play with:

    soulswitchentity.Handle() = 0;
    sub::Spooner::SpoonerEntity spe;
    spe.Handle = playerPed;
    if (!(sub::Spooner::EntityManagement::GetEntityIndexInDb(spe) >= 0))
    {
    playerPed.NoLongerNeeded();
    }

    		WAIT(64);
    
    		playerPed = PLAYER_PED_ID();


  • @JohnFromGWN ok was worth a try, compiled, no errors, but does nothing.

    PedPlayer = Game.Player.Character
    PedPlayer.MarkAsNoLongerNeeded()
    Wait(1000)
    PedPlayer = Ped1

    (Ped 1 is already spawned)

    Going to bed, eyes and brain shutting down.

    update: realized that this isn't the right approach. Menyoo uses a database. So even if I could switch to a ped there would be the other issue of switching back to the original player. I can identify the ped because it is a variable but once the player is switched, how to get it back?



  • Came across this old post and it was interesting to see how baffling something like this was: to be able to switch the player to another ped (or multiple peds) and back to the player. This was like the greatest challenge for me, and a huge source of frustration due to my inability to script it - in fact I wasn't even sure it was possible.
    I remember searching all over and found nothing. Asking for help didn't work either - this posting remained unanswered too.

    And I did have the right function identified (see above), just didn't know how to implement it at that time.

    Today, although I'm far from being a scripting expert, I can do something like this pretty quickly. In the video below, there are 2 cars chasing each other. With a keypress, the player goes from one ped and on the next keypress back to the original player. This can be done with more than 2 peds (I did 3 for fun, but it does get tricky).

    Footage is raw output from OBS - no R* editor, no editing period.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.