function calculateGearRatio()
if getElementType(source) == "player" then
setTimer(function()
playerHealth = getElementHealth ( source )
if playerHealth < 20 then
fadeCamera(source ,false)
setElementFrozen(source, true)
setPedAnimation ( source, "BEACH", "Lay_Bac_Loop", -1, true, false )
setTimer(function ()
--outputChatBox( "* Straci?e? przytomno?? w wyniku utraty krwi", source)
setPedAnimation ( source, "BEACH", "Lay_Bac_Loop", -1, true, false )
setElementFrozen(source, false)
fadeCamera(source, true)
end, 20*1000, 1)
end
end, 1 * 1000, 0)
end
end