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

Function

setVehicleProofs

New function!Added to Trilogy Hub on 2 Nov 2026.

ServerVehiclesTrilogy Hub only

Sets what a vehicle is immune to: bullets, fire, explosions, collisions and melee. Works for every player. All false restores normal behaviour. setVehicleDamageProof also makes it immune to everything at once.

Syntax

bool setVehicleProofs(vehicle vehicle, table proofs)

Arguments

vehiclevehicle
The vehicle.
proofstable
A table { bullets, fire, explosion, collisions, melee } with true/false values (a missing field = false).

Returns

true on success.

Example

local vehicle = createVehicle(411, 2000, -1690, 13.5)
setVehicleProofs(vehicle, { bullets = true, fire = true })

See also