Okay so... i've been making my first plugin for rust - it's a simple admin menu, as shown in the screenshot. BUT it's written entirely in Python.
The idea is you have a list of players (active = white, sleeper = yellow) and across from that will be buttons 'Ban' 'Kick' 'GoTo' 'Bring' 'Kill' etc.
The problem i'm having is that i can create the GUI easily enough however when destroying the UI, I cannot destroy the CuiPanel or CuiButton, as they don't appear to have a name attribute. At the moment i'm initialising these objects without any parameters and then assigning attributes after, the only attribute I cannot set is Name. Any ideas on how I can either set/get the names of the CuiButton or CuiPanel in Python?