Vehicle Wheel

self:set_visible

Shared

Sets whether the vehicle wheel is visible

Syntax

local status = self:set_visible(
    visible
)

Parameters

TypeNameDescription
boolvisibletrue to show the entity, false to hide it

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Toggle visibility of a vehicle wheel
local entity = physics.vehicle_wheel.create()

entity:set_visible(false)

On this page