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

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Roads and paths
- **URL**: https://wiki.mymp.gg/en/getParkingNodeInArea

## Syntax

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `minX, minY, minZ` | `float` | The box's lowest corner. |
| `maxX, maxY, maxZ` | `float` | The box's highest corner. |

## Returns

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

## Example

```lua
local spot = getParkingNodeInArea(1700, -1900, 0, 1900, -1700, 50)
if spot then
    outputDebugString(("parking at %.1f, %.1f"):format(spot.x, spot.y))
end
```

### Note

Only nodes in loaded path areas count: those near the player, or requested with `requestPathNodesInArea`.

## See also

- [getPathNodeInfo (Client)](https://wiki.mymp.gg/en/getPathNodeInfo.md): Returns what is known about a path node.
- [getClosestPathNode (Client)](https://wiki.mymp.gg/en/getClosestPathNode.md): Finds the road or footpath node closest to a point.
