Garry's Mod Leaks
Leak Xenin F4 menu
Submitted by Fennixbigbot, 11-12-2020, 05:39 PM, Thread ID: 189571
Thread Closed
RE: Leak Xenin F4 menu
11-12-2020, 05:59 PMDeleted_254521 Wrote: The old fix doesn'twork anymore,use this instead;
(First delete all the code inside of[b][font=-apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"][font=-apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"][b][font=-apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"]xenin_f4\lua\xenin_f4\ui\dashboard\staff.lua then copy and paste this code in it)[/font][/font][/font][/b][/b]
Code:local PANEL = {}
function PANEL:Init()
self.Scroll = self:Add("XeninUI.Scrollpanel.Wyvern")
self.Scroll:Dock(FILL)
self.Scroll:DockMargin(0, 40, 0, 0)
self.Players = {}
self:AddTimer("F4Menu.Dashboard.Staff", 10, 0, function()
self:Build()
end)
self:Build()
end
function PANEL:Build()
for i, v in ipairs(self.Players) do
v:Remove()
self.Players[i] = nil
end
for i, v in pairs(player.GetAll()) do
if (!F4Menu.Config.Staff[v:GetUserGroup()]) then continue end
self:CreatePlayer(v)
end
end
function PANEL:CreatePlayer(ply)
local name = ply:Nick()
local rank = F4Menu.Config.Staff[ply:GetUserGroup()]
local rankName = istable(rank) and rank.str or rank
local rankColor = istable(rank) and rank.color or Color(182, 182, 182)
local panel = self.Scroll:Add("DPanel")
panel:Dock(TOP)
panel:DockMargin(0, 0, 8, 8)
panel:SetTall(64)
panel.Paint = function(pnl, w, h)
XeninUI:DrawRoundedBox(6, 0, 0, w, h, Color(50, 50, 50))
local x = pnl.Avatar:GetWide() + (pnl.Avatar.x * 2) + 4
XeninUI:DrawShadowText(name, "F4Menu.Jobs.Row.Name", x, h / 2, Color(231, 231, 235), TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM, 1, 150)
XeninUI:DrawShadowText(rankName, "F4Menu.Jobs.Row.Salary", x, h / 2, rankColor, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP, 1, 150)
end
panel.Avatar = panel:Add("XeninUI.Avatar")
panel.Avatar:SetPlayer(ply, 64)
panel.Avatar:SetVertices(30)
panel.PerformLayout = function(pnl, w, h)
pnl.Avatar:SetPos(10, 10)
pnl.Avatar:SetSize(h - 20, h - 20)
end
table.insert(self.Players, panel)
end
function PANEL:Paint(w, h)
draw.SimpleText(F4Menu:GetPhrase("dashboard.onlineStaff.title"), "F4Menu.Dashboard.Navbar", 0, 32 / 2, Color(212, 212, 212), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
end
vgui.Register("F4Menu.Dashboard.Staff", PANEL)
Users browsing this thread: 5 Guest(s)