PED

IS_PED_IN_VEHICLE

0xA3EE4A07279BB9DB Jenkins: 0x7DA6BC83

Signature

// PED
BOOL IS_PED_IN_VEHICLE(Ped ped, Vehicle vehicle, BOOL atGetIn)

Parameters

Type Name
Ped ped
Vehicle vehicle
BOOL atGetIn

Return type BOOL

Build 323

Documentation

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.

APPI RP

Join us on FiveM

Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.