- Documentation
- Server functions
- getVehicleEntryPoints
Function
getVehicleEntryPoints
Returns a vehicle's entry points: those set with setVehicleEntryPoints, or four approximate points at the sides of the vehicle (for seats 0-3) at its current position.
Syntax
table getVehicleEntryPoints(vehicle vehicle)Arguments
vehiclevehicle- The vehicle.
Returns
An array of { x, y, z, seat } points.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
for _, p in ipairs(getVehicleEntryPoints(vehicle)) do
outputDebugString(("Fotel %d: %.1f, %.1f"):format(p.seat, p.x, p.y))
end