- Documentation
- Server functions
- setVehicleFuelTankExplodable
Function
setVehicleFuelTankExplodable
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.
valuebooltrue= 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.