Tente esse
-- Server-side
function pacoca(theVehicle,seat,jacked)
if getElementHealth(theVehicle) <= 10 then
setVehicleEngineState(theVehicle, false)
setElementData(theVehicle,"estanaFAIXA",true)
setVehicleDamageProof(theVehicle, true)
end
end
addEventHandler("onPlayerVehicleEnter",getRootElement(),pacoca)
function Saindo(theVehicle,seat,jacked)
setVehicleDamageProof(theVehicle, false) -- se você quiser que ele continue blindado quando sair do veiculo coloque TRUE
end
addEventHandler("onPlayerVehicleExit",getRootElement(),Saindo)
function deliciadeoco()
if getElementHealth(source) <= 10 then
setVehicleEngineState(theVehicle, false)
setElementData(source,"estanaFAIXA",true)
setVehicleDamageProof(source, true)
cancelEvent()
end
end
addEventHandler("onVehicleDamage",getRootElement(),deliciadeoco)