VEHICLE
IS_VEHICLE_SEAT_FREE
0x22AC59A870E6A669
Jenkins: 0xDAF42B02
Signature
// VEHICLE
BOOL IS_VEHICLE_SEAT_FREE(Vehicle vehicle, int seatIndex, BOOL isTaskRunning)
Parameters
| Type | Name |
|---|---|
| Vehicle | vehicle |
| int | seatIndex |
| BOOL | isTaskRunning |
Return type BOOL
Build 323
Documentation
Check if a vehicle seat is free. seatIndex = -1 being the driver seat. Use GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS(vehicle) - 1 for last seat index. isTaskRunning = on true the function returns already false while a task on the target seat is running (TASK_ENTER_VEHICLE/TASK_SHUFFLE_TO_NEXT_VEHICLE_SEAT) - on false only when a ped is finally sitting in the seat.
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.