ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isVehicleDamageProof

Function

isVehicleDamageProof

ServerVehiclesIdentical to MTA:SA

Checks whether the vehicle is damage proof (setVehicleDamageProof).

Syntax

bool isVehicleDamageProof(vehicle element)

Arguments

elementvehicle
The vehicle.

Returns

true when damage proof.

Example

addCommandHandler("pancerz", function(player)
    local vehicle = getPedOccupiedVehicle(player)
    if vehicle then
        setVehicleDamageProof(vehicle, not isVehicleDamageProof(vehicle))
    end
end)

See also