I've never worked with entities before and cannot find much info about them, but I suppose that the buttons on maps are entities (for example on minigame maps like mg_lego_multigames).
The thing is the creator of the map has done so when the button is pressed something happens, for example, some convars are changed and so on.
I want to know, can I somehow hook a press event of a specific button on the map to run some code? Or at least to change some cvars
Help me plz