isVehicleDamageProof | Multi Theft Auto: Wiki Skip to content

isVehicleDamageProof

Client-side
Server-side
Shared

Pair: setVehicleDamageProof

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 checks if a vehicle is damage proof (set with setVehicleDamageProof).

Syntax

isVehicleDamageProof ( )

Code Examples

server

This example will output in the chatbox whether the vehicle is vulnerable to damage or not when a player enters in it.

function checkVulnerability(theVehicle)
if isVehicleDamageProof(theVehicle) then
outputChatBox("This vehicle is not vulnerable to damage", source)
else
outputChatBox("This vehicle is vulnerable to damage", source)
end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), checkVulnerability )

See Also

Vehicle Functions