function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage("{FFFFFF}SCRIPT ", -1)
while true do
wait(0)
useRenderCommands(true)
setTextCentre(true)
setTextScale(0.3, 0.6) --размер
setTextColour(255, 255, 255, 255) --цвет
setTextEdge(1, 0, 0, 0, 255)
displayTextWithNumber(578.0, 68.0, 'NUMBER', getCharHealth(PLAYER_PED)) --расположение
if getCharArmour(PLAYER_PED) > 0 then
setTextCentre(true)
setTextScale(0.4, 0.7)
setTextColour(255, 255, 255, 255)
setTextEdge(1, 0, 0, 0, 255)
displayTextWithNumber(578.0, 47.0, 'NUMBER', getCharArmour(PLAYER_PED))
end
end
end