self:set_freeze_mode

Client

Sets the freeze mode of the vehicle body


Syntax

local status = self:set_freeze_mode(
    mode
)

Parameters

TypeNameDescription
intmodeFreeze mode enum value — refer to physics.vehicle.freeze_mode

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the freeze mode of a vehicle body
local entity = physics.vehicle.create()

entity:set_freeze_mode(physics.vehicle.freeze_mode.KINEMATIC)

On this page