# dxSetBlendMode (Client)

> Chooses how the next 2D `dx` functions mix with what is already drawn.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Screen drawing
- **URL**: https://wiki.mymp.gg/en/dxSetBlendMode

## Syntax

```lua
bool dxSetBlendMode([string blendMode = blend])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `blendMode` | `string` | `blend` (normal transparency), `add` (additive), `modulate_add` or `overwrite` (replaces, no transparency). *(default: `blend`)* |

## Returns

`true`.

## Example

```lua
local glow = engineCreateTexture("images/glow.png")

addEventHandler("onClientRender", root, function()
    dxSetBlendMode("add")
    dxDrawImage(100, 100, 128, 128, glow)
    dxSetBlendMode("blend")
end)
```

## See also

- [dxGetBlendMode (Client)](https://wiki.mymp.gg/en/dxGetBlendMode.md): Returns the blend mode of the 2D dx functions.
- [dxSetRenderTarget (Client)](https://wiki.mymp.gg/en/dxSetRenderTarget.md): Chooses where the next dx functions draw: into a render target or, without one, on the screen.
- [dxDrawImage (Client)](https://wiki.mymp.gg/en/dxDrawImage.md): Draws an image on the screen for one frame.
