GetVehicleEntryPoints

From Multi Theft Auto: Wiki
Revision as of 12:42, 1 August 2024 by Megadreams (talk | contribs) (Added note explaining that vehicle needs to be streamed in)
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.
[[{{{image}}}|link=|]] Note: The vehicle needs to be streamed in for this function to work.

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