Make Ped Move And Open Door

Hello All,

I have a quick question! I am currently working on a Taxi Script. I need a ped to move from and open the closest door to him. Any way I can do this? To give you a better idea, see below the image of the ped next to the vehicle. I would like the ped to open the driver door and get in.

Please let me know if you can help. Many thanks!

Pretty simple, just use TaskPedEnterVehicle - link to the natives reference. Depending on how the rest of the script is written, you may need to fetch that specific ped manually, which is also relatively easy to do. Simply look for relevant natives to use on the reference site.

Do you know what the p6 and the flag parameters should be?

I mean, how about reading the native’s description? I did link the server-side one by accident, but you can still click a hyperlink in its description to be led to the “correct” one, which has the argument descriptions.