[img]http://images.akamai.steamusercontent.com/ugc/177161718304022053/5CFECC3717216E0C8997067B1B4C35FB7CE6B8D1/[/img]
The agenda doesn't show up for some reason. Also, the abovementioned issue still hasnt been resolved yet...
[code]
if DarkRP && LocalPlayer():getAgendaTable() then
local AGEND = vgui.Create("DPanel")
AGEND:SetSize(400,132)
AGEND:SetPos(10,10)
function HUDF:Paint(w,h)
DrawBlurPanel(AGEND,1,10)
surface.SetDrawColor(Color(0,0,0,150))
surface.DrawRect(0,0,400,132)
AGEND:DrawOutlinedRect()
end
local ABAR = vgui.Create("DPanel", AGEND)
ABAR:Dock(TOP)
ABAR:SetHeight(32)
function ABAR:Paint(w,h)
surface.SetDrawColor(Color(20,20,20,250))
surface.DrawRect(0,0,400,32)
end
local ATEXT = vgui.Create("DLabel", ABAR)
ATEXT:SetColor(Color(255,255,255))
ATEXT:SetFont("agend")
ATEXT:CenterHorizontal()
ATEXT:SetContentAlignment(5)
ATEXT:SetSize(400,32)
ATEXT:SetText("Agenda")
local AFILL = vgui.Create("DPanel", AGEND)
AFILL:Dock(FILL)
local AFTEXT = vgui.Create("DLabel", AFILL)
AFTEXT:SetColor(Color(255,255,255))
AFTEXT:SetFont("player_jobh")
AFTEXT:SetSize(400,100)
function AFTEXT:Think()
AFTEXT:SetText(LocalPlayer():getDarkRPVar("agenda"))
end
else
end
[/code]
What I thought that MAY fix the agenda thing is to wrap it in a Think function, but not exactly sure how that'd work?
Help is very much appreciated!
[QUOTE=BremFM;51529464][img]http://images.akamai.steamusercontent.com/ugc/177161718304022053/5CFECC3717216E0C8997067B1B4C35FB7CE6B8D1/[/img]
The agenda doesn't show up for some reason. Also, the abovementioned issue still hasnt been resolved yet...
[code]
if DarkRP && LocalPlayer():getAgendaTable() then
local AGEND = vgui.Create("DPanel")
AGEND:SetSize(400,132)
AGEND:SetPos(10,10)
function HUDF:Paint(w,h)
DrawBlurPanel(AGEND,1,10)
surface.SetDrawColor(Color(0,0,0,150))
surface.DrawRect(0,0,400,132)
AGEND:DrawOutlinedRect()
end
local ABAR = vgui.Create("DPanel", AGEND)
ABAR:Dock(TOP)
ABAR:SetHeight(32)
function ABAR:Paint(w,h)
surface.SetDrawColor(Color(20,20,20,250))
surface.DrawRect(0,0,400,32)
end
local ATEXT = vgui.Create("DLabel", ABAR)
ATEXT:SetColor(Color(255,255,255))
ATEXT:SetFont("agend")
ATEXT:CenterHorizontal()
ATEXT:SetContentAlignment(5)
ATEXT:SetSize(400,32)
ATEXT:SetText("Agenda")
local AFILL = vgui.Create("DPanel", AGEND)
AFILL:Dock(FILL)
local AFTEXT = vgui.Create("DLabel", AFILL)
AFTEXT:SetColor(Color(255,255,255))
AFTEXT:SetFont("player_jobh")
AFTEXT:SetSize(400,100)
function AFTEXT:Think()
AFTEXT:SetText(LocalPlayer():getDarkRPVar("agenda"))
end
else
end
[/code]
What I thought that MAY fix the agenda thing is to wrap it in a Think function, but not exactly sure how that'd work?
Help is very much appreciated![/QUOTE]
Just use DarkRP hooks and functions. I think it has some "pre-code" for agendas.
Isn't that what I did?
[QUOTE=BremFM;51529634]Isn't that what I did?[/QUOTE]
What I mean is go look at the DarkRP code. Do what they did.
Make a gun with two different fire modes, which you change by right clicking.
Make text appear in chat to say what fire mode you're on.
Not fun, and very easy. But you asked for basic :)
There's always one 'try-hard'.
[QUOTE=Chickengbs;51531864]There's always one 'try-hard'.[/QUOTE]
I'm just eager to learn...
And FlyPoggyBanks, I looked at the DarkRP forums but to no avail..