Dark RP, Add a new tab?

Hi there!
Is it possible to add a new tab in DARKRP?
Like there is a job tab, a ent tab, a options tab.
In the F4 menu (:
I would like to have a simple tab called “donate”
And with some text (:
Thats all!
Is it possible?
-Thanks

[editline]06:07PM[/editline]

I got this so far:


function DonatePanel()
	local DonatePanel = vgui.Create("DPanelList")
	DonatePanel:EnableVerticalScrollbar( true )
		function DonatePanel:Update()
			self:Clear(true)
			TEST TEST TEST
	EntitiesPanel:SetSkin("DarkRP")
	EntitiesPanel:Update()	
	return EntitiesPanel
end

But it doesnt work, would anyone help me abit?

Don’t use emoticons, use the forums smiles.

Did you added that function to tabs list? Search in darkRP folder for these variables F4Menu, F4MenuTabs, F4Tabs. Don’t remember but one file have these variables. You will see a function beneath them. Just add your function next to other functions. Probably it was manipulating F4MenuTabs.

very informative

:v: is a nice generic one! You can find them all at, http://www.facepunch.com/misc.php.

Anyways, back to business. You seem like you have a general knowledge of Lua, so I’ll just tell you to check out cl_vgui.lua:246. Next, look about 34 or so lines down, and add the sheet.

Thanks, i try it (:
Ill come back with a respond later tonight (:

Okay, im not sure if anyone want to do this,
but. i tryed alot now, the hole day, and its still not working.
Would anyone be really kind and send me some lua files instead (:
Ty so much if you do it :smiley:

-Christian

:smug: :fsmug: :q: :madmax: :downsbravo: :mmmsmug: :unsmigghh: :smugspike: :smugissar::riker:

Rated useful.

Okay,
I added my code to showteamtabs,
and to cl_vgui,
But f4 is just gray,
But my job and money is there.

i get his console error,


[DarkRP\gamemode\cl_vgui.lua:246] attempt to call global 'MoneyTab' (a nil value)

My line 246 looks like this:


F4Tabs = {MoneyTab(), JobsTab(), EntitiesTab(), RPHUDTab(), DonateTab()}

Can anyone tell me whats wrong (:
-ty

[editline]07:20PM[/editline]

The tab i want to make is just a tab that says:
Hello, if you want to buy admin go to: blabbla
Thank you (:

So just a text-tab.

Noone knows anything?

Did you added that function to tabs list? Search in darkRP folder for these disney princess wedding dresses F4Menu, F4MenuTabs, F4Tabs. Don’t remember but one file have these variables. You will see a function beneath them.

#11 I did,

[editline]12:33PM[/editline]

I keep getting this error:

[DarkRP\gamemode\cl_vgui.lua:246] attempt to call global ‘MoneyTab’ (a nil value)

I dont know why

May you bugged somet up on the showteamtabs? you might of changed the name on MoneyTab?

Anyway I am working on adding tabs I will post back when I have :smile: