Log in to reply
 

[SCRIPT] Bodyguard as Driver on assigned Vehicle.



  • I'm looking for something like Car Companion V. Honestly it is really a good mod because the vehicle is able to "stick" on player and reach him everywhere, but it seems incomplete (imo) and often the bodyguard/driver disappears. Therefore this mod becomes almost useless to me. If possible I would like to request a mod with these features:

    • Select a Bodyguard and make it as Driver (if possible to get at least two drivers);
    • Assign a Driver to a Vehicle;
    • Allow to other Bodyguards to fill also that Vehicle;
    • Allow to Player to seat as passenger on assigned Vehicle;
    • Allow to Driver to reach marked map location;
    • Allow to Driver to follow Player.
    • Set the Drive Style (careful or aggressive);
    • (Make this mod fully compatible with the bodyguard system of Enhanched Menu).

    I understand this could be a big request, but I think much people looking for something similar. Some mods aren't supported anymore or don't work "as they should". None is obliged, but I hope that someone may find it interesting and take care of it. Have a good day ;)



  • I actually have done something like that before but now I don't know how I did it and I don't even have that code to refer it. but still, I can try that.



  • @harshil If you could do that it would be great! :slight_smile:



  • @fra700 i don't create script mods for upload, but if it helps, here are some of the functions to use to essentially do what you described.

    1. Create first bodyguard, let's call him/her CurrentPed. Rinse and repeat for up to 7 bodyguards.
      Ped CurrentPed = World.CreatePed(PedHash.FreemodeMale01, Game.Player.Character.GetOffsetPosition(new Vector3(1, 2, 0)));
      PedGroup PlayerGroup = Game.Player.Character.PedGroup;
      Function.Call(Hash.SET_PED_AS_GROUP_MEMBER, CurrentPed, PlayerGroup);

    2. Assign Driver to a Vehicle.
      CurrentPed.Task.EnterVehicle(LastVehicle, VehicleSeat.Driver -1, 0.0F, 0);

    3. Allow other bodyguards to fill vehicle. Rinse and repeat up to the number of free seats.
      SecondPed.Task.EnterVehicle(LastVehicle, VehicleSeat.LeftRear -1, 0.0F, 0);

    4. Allow player to sit as passenger while CurrentPed drives
      Game.Player.Character.Task.EnterVehicle(LastVehicle, VehicleSeat.Passenger, -1, 0.0F, 0);

    5. Have the CurrentPed drive to a location (not using markers here) and establish the driving style. Same function.
      CurrentPed.Task.DriveTo(LastVehicle, new Vector3(-1278, -3099, 14), 3.0F, 45, DrivingStyle.Rushed);



  • @fra700 hey! I created a small project as per your requirement for testing purposes and I recall how I did it before so, the waiting time is almost over just a few more days. I will upload a proper mode as per your requirement. thanks for the suggestion.



  • @harshil Oh wow! This is a nice news for me. I'll wait for the release. Thank to you, Harshil. 🙏


Log in to reply
 

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