self:is_visible

Client

Checks whether the vehicle body is visible


Syntax

local result = self:is_visible()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if visible, false otherwise

Examples

Check visibility of a vehicle body
local entity = physics.vehicle.create()

core.engine.print("info", "Vehicle body visible:", entity:is_visible())

On this page