isVehicleBlown | Multi Theft Auto: Wiki Skip to content

isVehicleBlown

Client-side
Server-side
Shared

Pair: blowVehicle

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 allows you to determine whether a vehicle is blown or still intact.

Syntax

isVehicleBlown ( )

Code Examples

server

This example creates a taxi and checks whether the taxi has blown up or not every time somebody types "/taxi".

theTaxi = createVehicle ( 420, 1, 1, 17 ) -- Add a taxi in the middle of SA
function checkTaxi ( thePlayer, command )
if ( isVehicleBlown ( theTaxi ) ) then -- Check whether it's blown or not
outputChatBox ( "The taxi has blown up.", thePlayer, 255, 0, 0 ) -- If so, we'll output it
else -- Anything else (if it's not)
outputChatBox ( "The taxi has not blown.", thePlayer, 255, 0, 0 ) -- If not, we'll output that instead
end
end
addCommandHandler ( "taxi", checkTaxi ) -- Make it check when somebody types "/taxi"

See Also

Vehicle Functions