[Help]How to get the last vehicle id that player sit in


#1

Please help. i wanna know how to get the id of the lastest vehicle that player sit in. when player is on-foot


#2

What are you trying to do with the last vehicle?


#3

have permission to lock/unlock them


#4

GET_VEHICLE_PED_IS_IN(Any p0, Any p1)

GetVehiclePedIsIn (GetPlayerPed (-1), true)

I thinks that’s what it is.

Where it says true I think that’s a boolean for getPlayerLastVehicle - true or false


#5

Is this work only when player [On] vehicle?


#6

Should work if the player sits in a vehicle and gets out yes.


#7

Okay i’ll try ty sir :D;