- Documentation
- Server functions
- setVehicleProofs
Function
setVehicleProofs
New function!Added to Trilogy Hub on 2 Nov 2026.
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 }withtrue/falsevalues (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
getVehicleProofsReturns the vehicle immunity table set by setVehicleProofs.setVehicleDamageProofMakes 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.setVehicleHealthFloorSets a vehicle health floor: bullets, fire, explosions and collisions will not take the health below this value. A floor of 250 or more stops the car from catching fire or exploding from damage. A script can still go lower with setElementHealth or blowVehicle. 0 turns the floor off.