GET_VEHICLE_PED_IS_IN
Gets the vehicle the specified Ped is/was in depending on bool value. This native is used server side when using OneSync.
CFX
Signature
lua
GetVehiclePedIsIn(PlayerPedId(), true)
-- returns VehicleParameters
| Name | Type | Description |
|---|---|---|
| Ped | The target ped | |
| BOOL | False = CurrentVehicle, True = LastVehicle |
Usage
lua
GetVehiclePedIsIn(PlayerPedId(), true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
