blowVehicle | Multi Theft Auto: Wiki Skip to content

blowVehicle

Client-side
Server-side
Shared
Needs checking

This function was partially migrated from the old wiki. Please review manually:

  • Missing section: Client Class Example

Pair: isVehicleBlown

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function will blow up a vehicle. This will cause an explosion and will kill the driver and any passengers inside it.

Syntax

blowVehicle ( )

Code Examples

server

This example will blow up every vehicle in the game.

vehicles = getElementsByType ( "vehicle" )
for vehicleKey, vehicleValue in ipairs(vehicles) do
blowVehicle ( vehicleValue )
end

See Also

Vehicle Functions