Name ESP
Name and health above every visible enemy.
local white = draw.color(255, 255, 255)
local flags = draw.flags.CENTER_X + draw.flags.OUTLINE
callbacks.register("on_paint", function()
if not engine.is_in_game() then return end
for _, p in ipairs(world.get_players(true)) do
if p:is_alive() and not p:is_dormant() then
local x, y = p:head_position():to_screen()
if x then
draw.text(x, y - 18, white, p:name() .. " " .. p:health(), flags)
end
end
end
end)