areAnyVehicleSeatsFree
ARE_ANY_VEHICLE_SEATS_FREE0x2D34FC3BC4ADB780The GTA V native ARE_ANY_VEHICLE_SEATS_FREE of the VEHICLE namespace, as LS:MP client scripts call it: the global function areAnyVehicleSeatsFree, in JavaScript and in Lua.
areAnyVehicleSeatsFree(vehicle: Vehicle): booleanareAnyVehicleSeatsFree(vehicle: Vehicle): booleanUsage
JavaScript
const result = areAnyVehicleSeatsFree(vehicle);Lua
local result = areAnyVehicleSeatsFree(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns false if every seat is occupied.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
BOOL ARE_ANY_VEHICLE_SEATS_FREE(Vehicle vehicle)- Hash
0x2D34FC3BC4ADB780- Formerly
_IS_ANY_VEHICLE_SEAT_EMPTY