> For the complete documentation index, see [llms.txt](https://docs.kuzquality.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kuzquality.com/resources/premium-resources/real-offroad-physics/api.md).

# API

Exported functions which may be used from within external scripts

### Get current depth of a vehicle wheel

Returns the current depth at which a specific wheel is submerged in

```lua
-- Client sided export
exports.kq_realoffroad:GetVehicleWheelDepth(vehicle, wheelIndex)
```

* vehicle: `number` the numeric client entity id
* wheelIndex: `number` the index of vehicle wheel (0-3)

### Get average depth of the current vehicle

Returns the average depth of the vehicle that the player is driving

```lua
-- Client sided export
exports.kq_realoffroad:GetCurrentDepth()
```
