local g =ui.Group("lua esp")local boxes = g.Checkbox("boxes",true)local names = g.Checkbox("names",true)local enemies_only = g.Checkbox("enemies only",true)local box_color = g.ColorPicker("box color",Color(255,90,90))events.present_queue:add(function()local me =entity.get_local_player()entity.players:for_each(function(pawn)if pawn == me ornot pawn:is_alive()or pawn:is_dormant()thenreturnendif enemies_only:get()andnot pawn:is_enemy()thenreturnendlocal box = pawn:get_bounding_box()ifnot box thenreturnendlocal x, y, w, h = box.mins.x, box.mins.y, box:width(), box:height()if boxes:get()thenrender.rect(x, y, w, h, box_color:get())local hp =math.clamp(pawn.m_iHealth/100,0,1)render.rect_filled(x -6, y + h *(1- hp),3, h * hp,Color.Percent(hp))endif names:get()thenrender.text(x + w /2, y -14, pawn:get_name(),Color.White(),"regular",nil,"co")endend)end)