I need help adding a derma menu and a few functions to it.
This is a plant that grows and once at the last stage, can be harvested to get a entity. I want to change it a little bit, at the last stage when you click on it, i want it to open a little derma UI with 2 buttons. One who harvest it(the original function that already is there) And a second button that sells it and give you X amount cash. once one of the buttons are clicked, the window disappear and you get one of those two things and the plant does the original function which is going back to the first stage before seed is added.
This is for darkRP.
This is how i want it to look, i think the code have to be changed a little bit. I want the derma window to popup in the middle of the screen
DButton5 = vgui.Create(‘DButton’)
DButton5.DoClick = function() end
DButton4 = vgui.Create(‘DButton’)
DButton4.DoClick = function() end
DFrame3 = vgui.Create(‘DFrame’)