sampRegisterChatCommand('hp', function()
sampAddChatMessage('Ваше ХП: '..getCharHealth(PLAYER_PED), -1) -- узнать своё хп
end)
sampRegisterChatCommand('hp', function(arg)
if sampIsPlayerConnected(arg) then
local health = getCharHealth(arg)
sampAddChatMessage('ХП игрока: '..health, -1) -- узнать хп игрока
end
end)