# engineSetDecals (Client)

> Sets how many decals (bullet holes, blood, tyre marks) can exist at once and how long they last.

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

## Syntax

```lua
bool engineSetDecals(int limit [, float lifetimeScale = 1])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `limit` | `int` | From 0 to 256. Lowering it removes the decals past the new limit at once. |
| `lifetimeScale` | `float` | Multiplies how long each decal lasts, from 0.1 to 4. *(default: `1`)* |

## Returns

`true` if the setting was applied.

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

## Example

```lua
engineSetDecals(64, 0.5)
```

### Note

Values outside the limits raise an error.

## See also

- [engineGetDecals (Client)](https://wiki.mymp.gg/en/engineGetDecals.md): Returns how many decals can exist at once and how long they last.
