Skip to content

$layers

2 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).

is_active

read-only
$layers.is_active(layer: int) -> bool

Returns true if a given layer is active.

ParameterTypeMeaning
layerintLayer to check, from vgame_layers_t.

Returns bool: True if the layer is active.

set_active

$layers.set_active(layer: int, active: bool)

Set a layer as active or inactive.

ParameterTypeMeaning
layerintLayer to set, from vgame_layers_t.
activeboolWhether the layer should be set to active or inactive.