natiny.model.get_visible
natiny.model.get_visible(model) -> visible
Whether the model is currently drawn by a pass.
Parameters
| Name | Type | Description |
|---|---|---|
model |
number |
Model handle |
Returns
| Type | Description |
|---|---|
boolean |
true when the model is visible |
Example
local visible = natiny.model.get_visible(door)
Notes
- Set with natiny.model.set_visible. Models start visible.
- A destroyed or invalid handle reads as
false.