GetVehicleEntryPoints

From Multi Theft Auto: Wiki
Revision as of 11:40, 31 July 2024 by FileEX (talk | contribs) (Created page with "{{Client function}} __NOTOC__ {{New feature/item|3.0161|1.6.0|22649| This function returns a table containing the positions to 4 possible entry points to a vehicle. This function can be used alongside setPedEnterVehicle to make a ped enter a specific seat by first moving the ped to a entry point retrieved through '''getVehicleEntryPoints''' and then using setPedEnterVehicle to make them enter. }} {{Note|This does not directly relate to the amount of doors a ve...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22649:

This function returns a table containing the positions to 4 possible entry points to a vehicle. This function can be used alongside setPedEnterVehicle to make a ped enter a specific seat by first moving the ped to a entry point retrieved through getVehicleEntryPoints and then using setPedEnterVehicle to make them enter.

[[{{{image}}}|link=|]] Note: This does not directly relate to the amount of doors a vehicle has as vehicles with two doors can have multiple entry points to the same door.

Syntax

table getVehicleEntryPoints(vehicle)


OOP Syntax Help! I don't understand this!

Method: vehicle:getEntryPoints(...)


Required arguments

  • vehicle: The vehicle from which we want to get entry points.

Returns

If the vehicle has entry points, it returns a table containing the positions of the 4 possible entry points to the vehicle, otherwise it returns false.

Example

Accessories-text-editor.png Script Example Missing Function GetVehicleEntryPoints needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also