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

Function

setVehicleDamageProof

ServerVehiclesIdentical to MTA:SA

Makes a vehicle damage proof for every player: collisions, shots and explosions do not take its health or break the body. Useful for showroom vehicles, city buses or vehicles in a safe zone.

Syntax

bool setVehicleDamageProof(vehicle element, bool value)

Arguments

elementvehicle
The vehicle.
valuebool
true = damage proof, false = normal.

Returns

true on success.

Example

local bus = createVehicle(431, 1760, -1890, 13.6)
setVehicleDamageProof(bus, true)

See also