News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: What does this code do? PedGetLastVehicle  (Read 1192 times)

0 Members and 1 Guest are viewing this topic.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
What does this code do? PedGetLastVehicle
« on: April 24, 2014, 02:54:05 PM »
PedGetLastVehicle

How and where and when does this code work?

i got a plan on a mod that requiers to get a vehicle.   so if u know it tell me if you are kind.   :)

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: What does this code do? PedGetLastVehicle
« Reply #1 on: April 24, 2014, 03:47:48 PM »
It's used to return the value of the last vehicle the ped used.

Example :

PedGetLastVehicle(Darby)

So it will return the last vehicle used by Darby.

You can use it to set commands on the last vehicle that ped used.