Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Initialise config
- local cfg = F4Menu:CreateConfig()
- -- Set the title of the F4
- -- This can be a string, i.e. "Xenin F4"
- -- Or it can be a function
- -- i.e. function() return "Xenin F4 - " .. LocalPlayer():getDarkRPVar("money") end
- -- A function will refresh every 10 seconds, so you can have things that change
- cfg:SetTitle("Xenin F4")
- -- Lets set the amount of columns per row for jobs & items
- cfg:SetColumnsPerRow(2)
- -- Should the menu close after changing job?
- cfg:SetCloseMenuAfterJobChange(false)
- -- Default sequence for jobs in the slideout menu?
- -- Set to false if you want to disable
- cfg:SetDefaultJobSequence("pose_standing_02")
- -- Should weapons use the addon Easy Skins to skin weapons if you have any equipped?
- cfg:SetEasySkins(true)
- -- How long should it take between typing the last letter of a search to it happens
- -- This is so it doesn't constantly update & lags while you search for something
- cfg:SetDebounceLength(0.2)
- -- Empty the search bar when you switch tabs in the items menu?
- cfg:SetEmptySearchOnTabSwitch(true)
- -- Should categories start expanded?
- cfg:SetCategoriesStartExpanded(true)
- -- For the total money.
- cfg:SetMoneyConfig({
- -- How often should it cache the total amount of money?
- -- This is in seconds
- CacheInterval = 120,
- -- Only count active players money
- -- Set to false to disable, and any number to determine the amount of days since last login to count as active
- DaysSinceLastLogin = 14
- })
- -- Setup the order of how tabs should be in the items menu
- cfg:SetItemsOrder({
- "Entities", "Weapons", "Shipments", "Ammo", "Vehicles", "Food"
- })
- -- Add staff
- -- :AddStaff(usergroup, display_name, color [optional])
- cfg:AddStaff("superadmin", "Super Admin", XeninUI.Theme.Blue)
- -- Set the tab that'll it will open up on when you open the menu first time
- cfg:SetActiveTab("Dashboard")
- --------------------------
- -- The sidebar content --
- --------------------------
- -- Add a divider from the top player part
- cfg:AddDivider()
- -- Add the first tab
- -- name = the display name of the tab
- -- desc = the description
- -- panel = the Lua VGUI panel. This can be used for custom tabs easily if the addon uses vgui.Register for UI
- -- icon is optional, if you don't want an icon just remove the field
- -- if you want an icon it uses imgur id, so if you want "https://i.imgur.com/0HYmtUy.png" you will need to set icon to "0HYmtUy"
- cfg:AddTab({
- name = "Dashboard",
- desc = "Server stats & more",
- panel = "F4Menu.Dashboard",
- icon = "Tpm965d"
- })
- cfg:AddTab({
- name = "Jobs",
- desc = "Get a career!",
- panel = "F4Menu.Jobs",
- icon = "MsBaa8Y"
- })
- cfg:AddTab({
- name = "Items",
- desc = "Entities & more",
- panel = "F4Menu.Items",
- icon = "HVnAVBY"
- })
- --[[
- -- You can have URLs
- -- It will try to open the URL in the Steam Browser upon pressing the tab.
- cfg:AddURL({
- name = "Donate",
- desc = "Give me shekels",
- -- Used to display title once you have pressed on the tab.
- tabName = "Donation Shop",
- url = "https://store.xeningaming.com"
- })
- -- You can also add a website that'll be shown in the F4 menu itself instead of Steam Browser
- -- You don't need a tab name here.
- cfg:AddWebsite({
- name = "Donate website",
- desc = "Give me shekels",
- url = "https://store.xeningaming.com"
- })
- --]]
- -- If you have Xenin Inventory you can set enabled to true
- -- You don't need panel for these
- cfg:SetXeninInventory({
- enabled = true,
- name = "Inventory",
- desc = "Store your things",
- icon = "iCAiL7W"
- })
- -- If you have Xenin Battle Pass you can set enabled to true
- -- Requires Battle Pass 1.0.7a or higher!
- cfg:SetXeninBattlePass({
- enabled = true,
- name = "Battle Pass",
- desc = "Rewards & challenges",
- icon = "hnalpdT"
- })
- -- If you have Xenin Coinflips you can set this to true
- -- At least version 1.0.8b
- cfg:SetXeninCoinflips({
- enabled = true,
- name = "Coinflips",
- desc = "Flip a coin",
- icon = "C3MyKJE"
- })
- -- Dividers doesn't use Color(r, g, b) it uses rgb(r, g, b) as a string, so " " around it
- -- cfg:AddDivider("rgb(0, 0, 0)", "rgb(255, 255, 0)")
- cfg:AddDivider()
- cfg:AddWebsite({
- name = "Discord",
- desc = "Join our Discord",
- url = "https://discord.gg/GuXWEmN",
- icon = "vHESvbx"
- })
- cfg:AddWebsite({
- name = "Steam Group",
- desc = "Join our group",
- url = "https://steamcommunity.com/id/randomiddududu",
- icon = "jvjxAQK"
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement