- Documentation
- Server functions
- isVehicleDamageProof
Function
isVehicleDamageProof
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)