FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: PEDAPI set: clientGame: gta5editImprove

IS_PED_IN_VEHICLE

0xA3EE4A07279BB9DB
0x7DA6BC83
// IsPedInVehicle
BOOL IS_PED_IN_VEHICLE(Ped ped, Vehicle vehicle, BOOL atGetIn);
Gets a value indicating whether the specified ped is in the specified vehicle.  
If 'atGetIn' is false, the function will not return true until the ped is sitting in the vehicle and is about to close the door. If it's true, the function returns true the moment the ped starts to get onto the seat (after opening the door). Eg. if false, and the ped is getting into a submersible, the function will not return true until the ped has descended down into the submersible and gotten into the seat, while if it's true, it'll return true the moment the hatch has been opened and the ped is about to descend into the submersible.  
Privacy
•
Cookie Policy
•
Cookie Settings
IS_PED_HEADING_TOWARDS_POSITION(Ped ped, float x, float y, float z, float p4)
IS_PED_HEADTRACKING_ENTITY(Ped ped, Entity entity)
IS_PED_HEADTRACKING_PED(Ped ped1, Ped ped2)
_IS_PED_HELMET_UNK(Ped ped)
IS_PED_HUMAN(Ped ped)
IS_PED_HURT(Ped ped)
IS_PED_IN_ANY_BOAT(Ped ped)
IS_PED_IN_ANY_HELI(Ped ped)
IS_PED_IN_ANY_PLANE(Ped ped)
IS_PED_IN_ANY_POLICE_VEHICLE(Ped ped)
IS_PED_IN_ANY_SUB(Ped ped)
IS_PED_IN_ANY_TAXI(Ped ped)
IS_PED_IN_ANY_TRAIN(Ped ped)
IS_PED_IN_ANY_VEHICLE(Ped ped, BOOL atGetIn)
IS_PED_IN_COMBAT(Ped ped, Ped target)
IS_PED_IN_COVER(Ped ped, BOOL exceptUseWeapon)
IS_PED_IN_COVER_FACING_LEFT(Ped ped)
IS_PED_IN_FLYING_VEHICLE(Ped ped)
IS_PED_IN_GROUP(Ped ped)
IS_PED_IN_HIGH_COVER(Ped ped)
IS_PED_IN_MELEE_COMBAT(Ped ped)
IS_PED_IN_MODEL(Ped ped, Hash modelHash)
IS_PED_IN_PARACHUTE_FREE_FALL(Ped ped)
IS_PED_IN_SPHERE_AREA_OF_ANY_ENEMY_PEDS(Ped ped, float x, float y, float z, float range)
IS_PED_IN_VEHICLE(Ped ped, Vehicle vehicle, BOOL atGetIn)
IS_PED_INJURED(Ped ped)
IS_PED_JACKING(Ped ped)
IS_PED_JUMPING(Ped ped)
IS_PED_JUMPING_OUT_OF_VEHICLE(Ped ped)
_IS_PED_LIPSTICK_COLOR_VALID(int colorID)
_IS_PED_LIPSTICK_COLOR_VALID_2(int colorId)
IS_PED_MALE(Ped ped)
IS_PED_MODEL(Ped ped, Hash modelHash)
IS_PED_ON_ANY_BIKE(Ped ped)
IS_PED_ON_FOOT(Ped ped)