# engineGetAmbientOcclusion (Client)

> Returns how many samples ambient occlusion takes.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Graphics settings
- **URL**: https://wiki.mymp.gg/en/engineGetAmbientOcclusion

## Syntax

```lua
int|false engineGetAmbientOcclusion()
```

## Returns

From 0 (off) to 32, or `false` if the renderer is not running.

## Example

```lua
outputDebugString("ao samples: " .. engineGetAmbientOcclusion())
```

## See also

- [engineSetAmbientOcclusion (Client)](https://wiki.mymp.gg/en/engineSetAmbientOcclusion.md): Sets how many samples ambient occlusion takes. More samples darken corners and crevices more precisely.
