GET_VEHICLE_PED_IS_IN
Gets the vehicle the specified Ped is in.
Hash
0x9A9112A0FE9A4713Runtime name
GetVehiclePedIsInNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x9A9112A0FE9A4713Signature
Vehicle GET_VEHICLE_PED_IS_IN(Ped ped, BOOL lastVehicle);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
lastVehicle | BOOL | — |
Returns Vehicle
Description
Gets the vehicle the specified Ped is in.
If the Ped is not in a vehicle and includeLastVehicle is true, the vehicle they were last in is returned.
Usage
local retval = GetVehiclePedIsIn(ped, lastVehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9A9112A0FE9A4713, ped, lastVehicle, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetVehiclePedIsIn(ped, lastVehicle);
// by hash
const retval = Citizen.invokeNative('0x9A9112A0FE9A4713', ped, lastVehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x9A9112A0FE9A4713, ped, lastVehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.