# setEffectScale (Shared)

> Changes an effect's size.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Effects
- **URL**: https://wiki.mymp.gg/en/setEffectScale

## Syntax

```lua
bool setEffectScale(effect effect, float scale)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `effect` | `effect` | The effect. |
| `scale` | `float` | Scale, a finite number above 0. 1 is the original size. |

## Returns

`true` if it changed. `false` with a wrong argument (logs a warning).

On the server, the change reaches every client. On a client, changing an effect the server created only holds on this client until the server sends its state again.

## Example

```lua
local fire = createEffect("fire", 2495.1, -1687.4, 13.5)
setEffectScale(fire, 2.5)
```

## See also

- [getEffectScale (Shared)](https://wiki.mymp.gg/en/getEffectScale.md): Reads an effect's size.
- [setEffectColor (Shared)](https://wiki.mymp.gg/en/setEffectColor.md): Tints an effect with a colour.
- [createEffect (Shared)](https://wiki.mymp.gg/en/createEffect.md): Creates a particle effect in the world. On the server every client sees it; on a client, only that client does.
