VehicleClient

isEntryPointForSeatClear

IS_ENTRY_POINT_FOR_SEAT_CLEAR0x639431E895B9AA57

The 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.

SignatureJavaScript
isEntryPointForSeatClear(
  ped: Ped,
  vehicle: Vehicle,
  seatIndex: number,
  side: boolean,
  onEnter: boolean
): boolean
SignatureLua
isEntryPointForSeatClear(
  ped: Ped,
  vehicle: Vehicle,
  seatIndex: integer,
  side: boolean,
  onEnter: boolean
): boolean

Usage

JavaScript
const result = isEntryPointForSeatClear(ped, vehicle, seatIndex, side, onEnter);
Lua
local result = isEntryPointForSeatClear(ped, vehicle, seatIndex, side, onEnter)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
vehicleVehiclenumberinteger
seatIndexintnumberinteger
sideBOOLbooleanboolean
onEnterBOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference