I found an addon on scriptfodder that fits almost everything I want but it has a shop on f4 that I really like, the problem is that on my server F4 is character stats and inventory, jobs and shops are all NPC’s.
I have already located all the code responsible for the menu itself, but I don’t know much about DarkRP, I don’t know what to change if I want it in my own derma frame instead of DarkRP’s default f4 menu.
Bits of code I don’t understand:
local function AwesomePanelsExists() for k,v in pairs(DarkRP.getF4MenuPanel():GetTable().Items) do if(v.Panel.sn) then return true end end return false end
hook.Add("F4MenuTabs", "F4MenuTabs_Magicadvi2", function()
if!(AwesomePanelsExists()) then DarkRP.addF4MenuTab("Shop", NewAdviShop()) else DarkRP.removeF4MenuTab("Shop") DarkRP.addF4MenuTab("Shop", NewAdviShop()) end
Sadly I can’t show much of the code or because it is from scriptfodder, but here is a link to the script