getEffectColor
Shared
Reads an effect's colour.
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
local smoke = createEffect("smoke_flare", 0, 0, 3)
local r, g, b, a = getEffectColor(smoke)
outputDebugString(r .. ", " .. g .. ", " .. b .. ", " .. a) -- 255, 255, 255, 255