# getEffectColor (Shared)

> Reads an effect's colour.

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

## Syntax

```lua
int|false getEffectColor(effect effect)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `effect` | `effect` | The effect. |

## Returns

Four numbers `r, g, b, a`, from 0 to 255, or `false` with a wrong argument.

## Example

```lua
local smoke = createEffect("smoke_flare", 0, 0, 3)
local r, g, b, a = getEffectColor(smoke)
outputDebugString(r .. ", " .. g .. ", " .. b .. ", " .. a) -- 255, 255, 255, 255
```

## See also

- [setEffectColor (Shared)](https://wiki.mymp.gg/en/setEffectColor.md): Tints an effect with a colour.
- [getEffectScale (Shared)](https://wiki.mymp.gg/en/getEffectScale.md): Reads an effect's size.
