getPedOverlay
Shared
Tells which variant of an overlay a ped wears on its face.
int, float|false getPedOverlay(ped ped, string name)
Parameters
| Name | Type | Description |
|---|---|---|
| ped | ped | The ped or player. |
| name | string | The overlay's name, as the ped's head declares it. Case does not matter. |
Returns
The variant and the opacity, or false if the ped does not wear that overlay.
Example
local variation, opacity = getPedOverlay(localPlayer, "beard")
if variation then
outputDebugString("beard " .. variation .. " at " .. opacity)
end