Jump to content

Stefax71

Members
  • Posts

    3
  • Joined

  • Last visited

Personal Information

  • Country
    Italy
  • Gender
    Female

Stefax71's Achievements

Feller

Feller (1/10)

0

Reputation

  1. The link appears to be dead.
  2. Ok I think I answered myself. I created this function that does exactly that and it works just fine: public static void SetPedIntoVehicle(Ped ped, Vehicle vehicle, int seatNumber) { Game.CallNative(NativeHashes.VEHICLE.SET_PED_INTO_VEHICLE, ped, vehicle, seatNumber); } maybe it was buried somewhere in RPH SDK but I did not really find it! The only thing I had to do was to set: ped.BlockPermanentEvents = true; to avoid the ped getting out of the wagon (apparently locking the door did not help) and shoot at me!
  3. Hello all! I hope someone can help me out here! I am trying to stow an hogtied ped into a Prison Wagon (WAGONPRISON01X). I tried this task: ped.Tasks.EnterVehicle(_wagon, 5, EnterVehicleFlags.WarpIn) and it works but only if the ped is able to move (which makes sense). What I would like to accomplish is to be able to stow the hogtied ped I am carrying inside the wagon. I lurked around on FiveM docs and found some other functions, all of them, since they are tasks, are working only if the ped is not incapacitated. I tried recreating the ped inside the wagon but even if I pass the model, it uses another random model and the effect is not the best ever. Any hints? Thank you!!!!
×
×
  • Create New...