M MY Multiplayer: Wiki
Side
Kind

getParkingNodeInArea

Client

Finds a parking node inside a box. Each call returns the next one in the box, going back to the first at the end.

vec3|false getParkingNodeInArea(float minX, minY, minZ, float maxX, maxY, maxZ)

Parameters

NameTypeDescription
minX, minY, minZfloatThe box's lowest corner.
maxX, maxY, maxZfloatThe box's highest corner.

Returns

The node's position, or false if there is none in the box.

Example

local spot = getParkingNodeInArea(1700, -1900, 0, 1900, -1700, 50)
if spot then
    outputDebugString(("parking at %.1f, %.1f"):format(spot.x, spot.y))
end
NoteOnly nodes in loaded path areas count: those near the player, or requested with requestPathNodesInArea.

See also