function sampev.onSendTakeDamage(id, damage, weapon, bodypart)
local gohp = getCharHealth(PLAYER_PED)
local whyhp = sampGetPlayerHealth(PLAYER_PED)
local dam
if damage < 1 then
dam = 1
else
dam = damage
end
setCharHealth(PLAYER_PED, math.floor(gohp + dam))
print("добавил хп: "..damage.." было после урона: "..gohp.." стало после восстановления: "..getCharHealth(PLAYER_PED))
end