Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2020
9,403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.31 KB | None | 0 0
  1. -- Initialise config
  2. local cfg = F4Menu:CreateConfig()
  3.  
  4. -- Set the title of the F4
  5. -- This can be a string, i.e. "Xenin F4"
  6. -- Or it can be a function
  7. -- i.e. function() return "Xenin F4 - " .. LocalPlayer():getDarkRPVar("money") end
  8. -- A function will refresh every 10 seconds, so you can have things that change
  9. cfg:SetTitle("Xenin F4")
  10.  
  11. -- Lets set the amount of columns per row for jobs & items
  12. cfg:SetColumnsPerRow(2)
  13.  
  14. -- Should the menu close after changing job?
  15. cfg:SetCloseMenuAfterJobChange(false)
  16.  
  17. -- Default sequence for jobs in the slideout menu?
  18. -- Set to false if you want to disable
  19. cfg:SetDefaultJobSequence("pose_standing_02")
  20.  
  21. -- Should weapons use the addon Easy Skins to skin weapons if you have any equipped?
  22. cfg:SetEasySkins(true)
  23.  
  24. -- How long should it take between typing the last letter of a search to it happens
  25. -- This is so it doesn't constantly update & lags while you search for something
  26. cfg:SetDebounceLength(0.2)
  27.  
  28. -- Empty the search bar when you switch tabs in the items menu?
  29. cfg:SetEmptySearchOnTabSwitch(true)
  30.  
  31. -- Should categories start expanded?
  32. cfg:SetCategoriesStartExpanded(true)
  33.  
  34. -- For the total money.
  35. cfg:SetMoneyConfig({
  36.     -- How often should it cache the total amount of money?
  37.     -- This is in seconds
  38.     CacheInterval = 120,
  39.     -- Only count active players money
  40.     -- Set to false to disable, and any number to determine the amount of days since last login to count as active
  41.     DaysSinceLastLogin = 14
  42. })
  43.  
  44. -- Setup the order of how tabs should be in the items menu
  45. cfg:SetItemsOrder({
  46.     "Entities", "Weapons", "Shipments", "Ammo", "Vehicles", "Food"
  47. })
  48.  
  49. -- Add staff
  50. -- :AddStaff(usergroup, display_name, color [optional])
  51. cfg:AddStaff("superadmin", "Super Admin", XeninUI.Theme.Blue)
  52.  
  53. -- Set the tab that'll it will open up on when you open the menu first time
  54. cfg:SetActiveTab("Dashboard")
  55.  
  56. --------------------------
  57. -- The sidebar content  --
  58. --------------------------
  59.  
  60. -- Add a divider from the top player part
  61. cfg:AddDivider()
  62.  
  63. -- Add the first tab
  64. -- name = the display name of the tab
  65. -- desc = the description
  66. -- panel = the Lua VGUI panel. This can be used for custom tabs easily if the addon uses vgui.Register for UI
  67. -- icon is optional, if you don't want an icon just remove the field
  68. -- 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"
  69. cfg:AddTab({
  70.     name = "Dashboard",
  71.     desc = "Server stats & more",
  72.     panel = "F4Menu.Dashboard",
  73.     icon = "Tpm965d"
  74. })
  75. cfg:AddTab({
  76.     name = "Jobs",
  77.     desc = "Get a career!",
  78.     panel = "F4Menu.Jobs",
  79.     icon = "MsBaa8Y"
  80. })
  81. cfg:AddTab({
  82.     name = "Items",
  83.     desc = "Entities & more",
  84.     panel = "F4Menu.Items",
  85.     icon = "HVnAVBY"
  86. })
  87.  
  88. --[[
  89. -- You can have URLs
  90. -- It will try to open the URL in the Steam Browser upon pressing the tab.
  91. cfg:AddURL({
  92.     name = "Donate",
  93.     desc = "Give me shekels",
  94.     -- Used to display title once you have pressed on the tab.
  95.     tabName = "Donation Shop",
  96.     url = "https://store.xeningaming.com"
  97. })
  98.  
  99. -- You can also add a website that'll be shown in the F4 menu itself instead of Steam Browser
  100. -- You don't need a tab name here.
  101. cfg:AddWebsite({
  102.     name = "Donate website",
  103.     desc = "Give me shekels",
  104.     url = "https://store.xeningaming.com"
  105. })
  106. --]]
  107.  
  108. -- If you have Xenin Inventory you can set enabled to true
  109. -- You don't need panel for these
  110. cfg:SetXeninInventory({
  111.     enabled = true,
  112.     name = "Inventory",
  113.     desc = "Store your things",
  114.     icon = "iCAiL7W"
  115. })
  116.  
  117. -- If you have Xenin Battle Pass you can set enabled to true
  118. -- Requires Battle Pass 1.0.7a or higher!
  119. cfg:SetXeninBattlePass({
  120.     enabled = true,
  121.     name = "Battle Pass",
  122.     desc = "Rewards & challenges",
  123.     icon = "hnalpdT"
  124. })
  125.  
  126. -- If you have Xenin Coinflips you can set this to true
  127. -- At least version 1.0.8b
  128. cfg:SetXeninCoinflips({
  129.     enabled = true,
  130.     name = "Coinflips",
  131.     desc = "Flip a coin",
  132.     icon = "C3MyKJE"
  133. })
  134.  
  135. -- Dividers doesn't use Color(r, g, b) it uses rgb(r, g, b) as a string, so " " around it
  136. -- cfg:AddDivider("rgb(0, 0, 0)", "rgb(255, 255, 0)")
  137. cfg:AddDivider()
  138. cfg:AddWebsite({
  139.     name = "Discord",
  140.     desc = "Join our Discord",
  141.     url = "https://discord.gg/GuXWEmN",
  142.     icon = "vHESvbx"
  143. })
  144. cfg:AddWebsite({
  145.     name = "Steam Group",
  146.     desc = "Join our group",
  147.     url = "https://steamcommunity.com/id/randomiddududu",
  148.     icon = "jvjxAQK"
  149. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement