getElementAlpha
Shared
Reads an element's alpha, from 0 (invisible) to 255 (opaque).
int|false getElementAlpha(element element)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The element to read. |
Returns
The alpha, or false if the element has none.
Example
if getElementAlpha(localPlayer) < 255 then
setElementAlpha(localPlayer, 255)
end