> For the complete documentation index, see [llms.txt](https://lua.legacy.fatality.win/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lua.legacy.fatality.win/csgo/interfaces/debug-overlay.md).

# Debug Overlay

csgo.interface\_handler:get\_debug\_overlay( )

## Functions

### add\_box\_overlay

renders a 3-dimensional box at position for a limited duration

`debug_overlay:add_box_overlay( origin, mins, maxs, angle, color, duration )`

| Parameter |                  Data type                 |         Description        |
| :-------: | :----------------------------------------: | :------------------------: |
|   origin  | [csgo.vector3](/csgo/datatypes/vector3.md) |      position in world     |
|    mins   | [csgo.vector3](/csgo/datatypes/vector3.md) |       minimum bounds       |
|    maxs   | [csgo.vector3](/csgo/datatypes/vector3.md) |       maximum bounds       |
|   angle   |   [csgo.angle](/csgo/datatypes/angle.md)   |     box rotation angle     |
|   color   |   [csgo.color](/csgo/datatypes/color.md)   |      color of the box      |
|  duration |                    float                   | how long the box will last |

### add\_line\_overlay

renders a line in 3D space for a limited time

`debug_overlay:add_line_overlay( point_one, point_two, color, skip_occlusion, duration )`

|    Parameter    |                  Data type                 |         Description         |
| :-------------: | :----------------------------------------: | :-------------------------: |
|    point\_one   | [csgo.vector3](/csgo/datatypes/vector3.md) |        first position       |
|    point\_two   | [csgo.vector3](/csgo/datatypes/vector3.md) |       second position       |
|      color      |   [csgo.color](/csgo/datatypes/color.md)   |      color of the line      |
| skip\_occlusion |                   boolean                  |      draw behind walls      |
|     duration    |                    float                   | how long the line will last |
