isEntryPointForSeatClear
IS_ENTRY_POINT_FOR_SEAT_CLEAR0x639431E895B9AA57The GTA V native IS_ENTRY_POINT_FOR_SEAT_CLEAR of the VEHICLE namespace, as LS:MP client scripts call it: the global function isEntryPointForSeatClear, in JavaScript and in Lua.
isEntryPointForSeatClear(
ped: Ped,
vehicle: Vehicle,
seatIndex: number,
side: boolean,
onEnter: boolean
): booleanisEntryPointForSeatClear(
ped: Ped,
vehicle: Vehicle,
seatIndex: integer,
side: boolean,
onEnter: boolean
): booleanUsage
JavaScript
const result = isEntryPointForSeatClear(ped, vehicle, seatIndex, side, onEnter);Lua
local result = isEntryPointForSeatClear(ped, vehicle, seatIndex, side, onEnter)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
vehicle | Vehicle | number | integer |
seatIndex | int | number | integer |
side | BOOL | boolean | boolean |
onEnter | BOOL | boolean | boolean |
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.
Check if a vehicle seat is accessible. If you park your vehicle near a wall and the ped cannot enter/exit this side, the return value toggles from true (not blocked) to false (blocked).
seatIndex = -1 being the driver seat.
Use getVehicleMaxNumberOfPassengers(vehicle) - 1 for last seat index.
side = only relevant for bikes/motorcycles to check if the left (false)/right (true) side is blocked.
onEnter = check if you can enter (true) or exit (false) a vehicle.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
BOOL IS_ENTRY_POINT_FOR_SEAT_CLEAR(Ped ped, Vehicle vehicle, int seatIndex, BOOL side, BOOL onEnter)- Hash
0x639431E895B9AA57- Formerly
_IS_VEHICLE_SEAT_ACCESSIBLE