ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setVehicleDoorsUndamageable

Function

setVehicleDoorsUndamageable

ServerVehiclesIdentical to MTA:SA

Stores whether the vehicle's doors should be impossible to break off.

Syntax

bool setVehicleDoorsUndamageable(vehicle vehicle, bool value)

Arguments

vehiclevehicle
The vehicle.
valuebool
true = doors do not fall off.

Returns

true on success.

Example

local limo = createVehicle(409, 1480, -1740, 13.5)
setVehicleDoorsUndamageable(limo, true)

Notes

State for scripts. The game does not use this value yet. To put doors back, use setVehicleDoorState or fixVehicle.

See also