# engineSetAntiAliasing (Client)

> Chooses the image's anti-aliasing.

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

## Syntax

```lua
bool engineSetAntiAliasing(string mode)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `mode` | `string` | `none`, `fxaa` or `taa` (temporal). Any other name raises an error. |

## Returns

`true` if the mode was applied. `false` if the renderer is not running or `taa` is not available on this device.

The setting applies to the whole client and stays after the resource stops.

## Example

```lua
if not engineSetAntiAliasing("taa") then
    engineSetAntiAliasing("fxaa")
end
```

## See also

- [engineGetAntiAliasing (Client)](https://wiki.mymp.gg/en/engineGetAntiAliasing.md): Returns the anti-aliasing in use.
- [engineSetSharpness (Client)](https://wiki.mymp.gg/en/engineSetSharpness.md): Sets how much the final image is sharpened.
