IsVehicleFuelTankExplodable

From Multi Theft Auto: Wiki
Revision as of 10:15, 7 October 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This will tell you if a vehicle's petrol tank is explodable.

Syntax

bool isVehicleFuelTankExplodable ( vehicle theVehicle )

Required Arguments

  • theVehicle: The vehicle that you need to obtain the fuel tank status of.

Returns

Returns true if the specified vehicle is valid and it's fuel tank is explodable, false otherwise.

Example

This example creates a vehicle then displays if it fuel tank is explodable or not in the chatbox.

newcar = createVehicle ( 520, 1024, 1024, 1024 )
if ( isVehicleFuelTankExplodable ( newcar ) ) then
  outputChatBox ( "Vehicle's tank is explodable" )
else
  outputChatBox ( "Vehicle's tank is not explodable" )
end

See Also