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

Function

setVehicleFuelTankExplodable

ServerVehiclesIdentical to MTA:SA

Stores whether the vehicle's fuel tank should explode when shot (shooting the tank blows the car up).

Syntax

bool setVehicleFuelTankExplodable(vehicle element, bool value)

Arguments

elementvehicle
The vehicle.
valuebool
true = the tank explodes when shot.

Returns

true on success.

Example

local tanker = createVehicle(514, 2200, -2250, 13.5)
setVehicleFuelTankExplodable(tanker, true)

Notes

State for scripts. The game does not use this value yet; the vehicle behaves as usual in San Andreas.

See also