Advertisement
GMODOWNER

ERROR FILE! FILE:TAB_CONFIG

Jan 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.31 KB | None | 0 0
  1. /**
  2. * General configuration
  3. **/
  4.  
  5. -- Title to display on the scoreboard.
  6. -- Leave empty to show the server name.
  7. LOUNGE_TAB.Title = "LickRP"
  8.  
  9. -- Display style of the list.
  10. -- 0: All players in the same list
  11. -- 1: Separate players by team
  12. -- 2: Separate players by user group
  13. -- 3: Separate players by alive/dead status
  14. -- 4: Separate players by free/in jail status
  15. -- 5: Separate players by TTT categories (terrorists, spectators, MIA and confirmed)
  16. --    Don't use in any gamemode other than TTT!
  17. LOUNGE_TAB.DisplayStyle = 0
  18.  
  19. -- Display the player count on the top of the menu?
  20. LOUNGE_TAB.DisplayPlayerCount = true
  21.  
  22. -- Display the player's country flag.
  23. LOUNGE_TAB.DisplayFlag = true
  24.  
  25. -- Only admins (or above) should see other players' flag.
  26. -- (Players can still see their own flag)
  27. LOUNGE_TAB.OnlyAdminsSeeFlags = false
  28.  
  29. -- Custom flag icon for specific players.
  30. -- Supports SteamID and SteamID64 and usergroup
  31. -- Use the first column in this list: https://en.wikipedia.org/wiki/ISO_3166-2#Current_codes to find the country code
  32. -- Some flags will not display!
  33. LOUNGE_TAB.PlayerFlags = {
  34.     -- ["STEAM_0:0:0"] = "gb",
  35.     -- ["STEAM_0:1:8039869"] = "jp",
  36. }
  37.  
  38. -- Columns to display in a player's row.
  39. -- To enable a column, remove the -- before the lines corresponding to it.
  40. -- To disable it, either erase the column from the table or add the -- to all lines corresponding to it
  41. LOUNGE_TAB.PlayerColumns = {
  42.     /*
  43.     * TTT columns
  44.     */
  45.  
  46.     // COLUMN: Role
  47.     -- {text = "", ttt = true,
  48.         -- func = function(ply)
  49.             -- local rol, col = "", nil
  50.             -- if (ply:IsTraitor()) then
  51.                 -- rol, col = LOUNGE_TAB.Language.traitor or "", Color(231, 76, 60)
  52.             -- elseif (ply:IsDetective()) then
  53.                 -- rol, col = LOUNGE_TAB.Language.detective or "", Color(52, 152, 219)
  54.             -- end
  55.  
  56.             -- return rol, col
  57.         -- end
  58.     -- },
  59.  
  60.     // COLUMN: Karma
  61.     -- {text = "karma", ttt = true,
  62.         -- func = function(ply)
  63.             -- return math.Round(ply:GetBaseKarma())
  64.         -- end,
  65.         -- candisplay = function()
  66.             -- return KARMA and KARMA.IsEnabled()
  67.         -- end
  68.     -- },
  69.  
  70.     /*
  71.     * DarkRP columns
  72.     */
  73.    
  74.     // COLUMN: Cash
  75.     -- {text = "cash", darkrp = true,
  76.         -- func = function(ply)
  77.             -- if (!DarkRP) then
  78.                 -- return end
  79.  
  80.             -- return DarkRP.formatMoney(ply:getDarkRPVar("money"))
  81.         -- end
  82.     -- },
  83.  
  84.     // COLUMN: Job
  85.     -- {text = "job", wi = 150, darkrp = true,
  86.         -- func = function(ply)
  87.             -- // Set this to true to show the custom job
  88.             -- local custom_job = true
  89.        
  90.             -- // Set this to true to show the team color
  91.             -- local team_color = false
  92.  
  93.             -- local n = team.GetName(ply:Team())
  94.             -- if (custom_job and ply.getDarkRPVar) then
  95.                 -- n = ply:getDarkRPVar("job") or n
  96.             -- end
  97.            
  98.             -- if (team_color) then
  99.                 -- return n, team.GetColor(ply:Team())
  100.             -- else
  101.                 -- return n
  102.             -- end
  103.         -- end
  104.     -- },
  105.  
  106.     // UTeam column
  107.     -- {text = "team", wi = 150, func = function(ply)
  108.         -- return team.GetName(ply:Team()), team.GetColor(ply:Team())
  109.     -- end},
  110.  
  111.     // UTime columns
  112.     -- {text = "playtime", wi = 120, func = function(ply)
  113.         -- return LT_FormatTime(ply:GetUTime() + CurTime() - ply:GetUTimeStart())
  114.     -- end},
  115.     -- {text = "session", wi = 120, func = function(ply)
  116.         -- return LT_FormatTime(CurTime() - ply:GetUTimeStart())
  117.     -- end},
  118.  
  119.     // aTags column
  120.     -- {text = "", wi = 120, func = function(ply)
  121.         -- local tx, col = hook.Call("aTag_GetScoreboardTag", nil, ply)
  122.         -- return tx or "", col or color_white
  123.     -- end},
  124.  
  125.     {text = "kills", func = function(ply)
  126.         return ply:Frags()
  127.     end},
  128.     {text = "deaths", func = function(ply)
  129.         return ply:Deaths()
  130.     end},
  131.     {text = "ping", func = function(ply)
  132.         return ply:IsBot() and "BOT" or ply:Ping()
  133.     end},
  134. }
  135.  
  136. -- Column ID to sort players by.
  137. -- For example, if it's 1, it will sort by the first column, which is the kills (normally)
  138. LOUNGE_TAB.PlayerSortBy = 1
  139.  
  140. -- Set to true to sort from lowest to highest instead of highest to lowest.
  141. LOUNGE_TAB.SortAsc = false
  142.  
  143. -- Display the "user" user group text for default users.
  144. LOUNGE_TAB.DisplayUserLabel = false
  145.  
  146. -- Display the F4 button on the left
  147. LOUNGE_TAB.ShowF4Button = true
  148.  
  149. -- When left-clicking a player row, should a specific admin menu appear?
  150. -- 0: None
  151. -- 1: FAdmin
  152. -- 2: ULX
  153. LOUNGE_TAB.UsePlayerAdminMenu = 0
  154.  
  155. -- Website to open when clicking on the "Website" button
  156. -- Leave empty to hide the website button.
  157. LOUNGE_TAB.Website = "http://google.com/"
  158.  
  159. -- Website to open when clicking on the "Donate" button
  160. -- Leave empty to hide the donate button.
  161. LOUNGE_TAB.Donate = "http://google.com/"
  162.  
  163. -- Buttons to show on the left of the menu.
  164. LOUNGE_TAB.Buttons = {
  165.     {id = "f4", text = "F4", icon = Material("shenesis/f4menu/notebook.png", "noclamp smooth"),
  166.         callback = function()
  167.             if (LOUNGE_F4) then
  168.                 LOUNGE_F4:Show()
  169.             else
  170.                 RunConsoleCommand("gm_showspare2")
  171.             end
  172.         end,
  173.         display = function()
  174.             return LOUNGE_TAB.ShowF4Button
  175.         end,
  176.     },
  177.     {id = "website", text = "website", icon = Material("shenesis/f4menu/earth.png", "noclamp smooth"),
  178.         callback = function()
  179.             gui.OpenURL(LOUNGE_TAB.Website)
  180.         end,
  181.         display = function()
  182.             return LOUNGE_TAB.Website and LOUNGE_TAB.Website ~= ""
  183.         end,
  184.     },
  185.     {id = "donate", text = "donate", icon = Material("shenesis/f4menu/star.png", "noclamp smooth"),
  186.         callback = function()
  187.             gui.OpenURL(LOUNGE_TAB.Donate)
  188.         end,
  189.         display = function()
  190.             return LOUNGE_TAB.Donate and LOUNGE_TAB.Donate ~= ""
  191.         end,
  192.     },
  193.     {id = "fadminsettings", text = "server_settings", icon = Material("shenesis/f4menu/settings.png", "noclamp smooth"),
  194.         callback = function()
  195.             if (!FAdmin or !FAdmin.ScoreBoard) then
  196.                 return end
  197.  
  198.             FAdmin.ScoreBoard.ShowScoreBoard()
  199.             FAdmin.ScoreBoard.ChangeView("Server")
  200.  
  201.             LOUNGE_TAB.ScoreboardCursor = false
  202.             gui.EnableScreenClicker(true)
  203.  
  204.             if (IsValid(FAdmin.ScoreBoard.Controls.BackButton)) then
  205.                 FAdmin.ScoreBoard.Controls.BackButton.DoClick = function()
  206.                     FAdmin.ScoreBoard.HideScoreBoard()
  207.                 end
  208.             end
  209.         end,
  210.         display = function()
  211.             return FAdmin and FAdmin.ScoreBoard and LOUNGE_TAB.ShowFAdminSettings and LocalPlayer():IsAdmin()
  212.         end,
  213.     },
  214. }
  215.  
  216. -- What method to use to retrieve the user group.
  217. -- Leave to 0 if you use ULX or no special admin mode listed below
  218. -- Set to 1 if you use ServerGuard
  219. LOUNGE_TAB.UsergroupMode = 0
  220.  
  221. -- Always bring up the cursor when opening the scoreboard.
  222. -- if false, players have to right-click to bring up the cursor.
  223. LOUNGE_TAB.CursorOnOpen = false
  224.  
  225. -- Show the Server settings (FAdmin only!) button on the left.
  226. LOUNGE_TAB.ShowFAdminSettings = true
  227.  
  228. -- Show the icons for FAdmin player commands.
  229. LOUNGE_TAB.ShowFAdminIcons = true
  230.  
  231. /**
  232. * Style configuration
  233. **/
  234.  
  235. -- Scoreboard width multiplier
  236. LOUNGE_TAB.WidthScale = 1
  237.  
  238. -- Scoreboard height multiplier
  239. LOUNGE_TAB.HeightScale = 1
  240.  
  241. -- Blur the blackground in black when the scoreboard is open
  242. LOUNGE_TAB.DrawBackgroundBlur = false
  243.  
  244. -- Font to use for normal text throughout the Tab menu.
  245. LOUNGE_TAB.Font = "Circular Std Medium"
  246.  
  247. -- Font to use for bold text throughout the Tab menu.
  248. LOUNGE_TAB.FontBold = "Circular Std Bold"
  249.  
  250. -- Font to use for italic text throughout the Tab menu.
  251. LOUNGE_TAB.FontItalic = "Circular Std Medium Italic"
  252.  
  253. -- Color sheet. Only modify if you know what you're doing
  254. LOUNGE_TAB.Style = {
  255.     header = Color(52, 152, 219),
  256.     bg = Color(52, 73, 94),
  257.     inbg = Color(44, 62, 80),
  258.  
  259.     full = Color(231, 76, 60),
  260.     close_hover = Color(231, 76, 60),
  261.     hover = Color(255, 255, 255, 10),
  262.     hover2 = Color(255, 255, 255, 5),
  263.  
  264.     text = Color(255, 255, 255),
  265.     subtext = Color(149, 165, 166),
  266.     text_down = Color(0, 0, 0),
  267.     textentry = Color(236, 240, 241),
  268.  
  269.     menu = Color(127, 140, 141),
  270. }
  271.  
  272. -- Display the Usergroup text in italic?
  273. LOUNGE_TAB.ItalicUsergroup = true
  274.  
  275. -- Usergroup colors to use on the player rows.
  276. -- Set to "rainbow" instead of a Color for, well, a rainbow animated text.
  277. -- Usergroups not in this table will be displayed in white, which may clash with the player name!
  278. LOUNGE_TAB.UsergroupColors = {
  279.     ["user"] = Color(255, 255, 255),
  280.     ["vip"] = Color(255, 247, 0),
  281.     ["vip+"] = Color(255, 247, 0),
  282.     ["moderator"] = Color(52, 152, 219),
  283.     ["seniormod"] = Color(119, 0, 255),
  284.     ["admin"] = Color(0, 162, 255),
  285.     ["senioradmin"] = Color(0, 255, 145),
  286.     ["super_admin"] = Color(241, 196, 15),
  287.     ["communitymanager"] = Color(255, 128, 0),
  288.     ["staffmanager"] = Color(231, 76, 60),
  289.     ["servermanager"] = Color(26, 188, 156),
  290.     ["headofstaff"] = Color(241, 196, 15),
  291.     ["coowner"] = "rainbow",
  292.     ["owner"] = "rainbow",
  293. }
  294.  
  295. -- Set players with a custom colored name here.
  296. -- Supports SteamID and SteamID64 and usergroup
  297. -- Set to "rainbow" for, well, a rainbow animated text.
  298. LOUNGE_TAB.PlayerColors = {
  299.     -- ["STEAM_0:0:0"] = Color(255, 0, 0),
  300.     -- ["STEAM_0:1:8039869"] = "rainbow",
  301. }
  302.  
  303. /**
  304. * Language configuration
  305. **/
  306.  
  307. -- "Clean" Usergroup names to display on the player rows.
  308. -- Usergroups not in this table will be displayed directly, which may not look good.
  309. LOUNGE_TAB.CleanUsergroups = {
  310.     ["user"] = "User",
  311.     ["vip"] = "VIP",
  312.     ["vip+"] = "VIP+",
  313.     ["moderator"] = "Moderator",
  314.     ["seniormod"] = "SeniorMod",
  315.     ["admin"] = "Administrator",
  316.     ["senioradmin"] = "Senior Administrator",
  317.     ["super_admin"] = "Super Administrator",
  318.     ["communitymanager"] = "Community Manager",
  319.     ["staffmanager"] = "Staff Manager",
  320.     ["headofstaff"] = "Head of Staff",
  321.     ["servermanager"] = "Server Manager",
  322.     ["coowner"] = "CoOwner",
  323.     ["owner"] = "Owner",
  324. }
  325.  
  326. -- Various strings used throughout the Tab menu. Change them to your language here.
  327. -- %s and %d are special strings replaced with relevant info, keep them in the string!
  328.  
  329. // FRENCH Translation: http://pastebin.com/raw/6JmrebWP
  330. // JAPANESE Translation: http://pastebin.com/raw/VypMFbcm
  331.  
  332. LOUNGE_TAB.Language = {
  333.     toggle = "Toggle",
  334.     website = "Website",
  335.     donate = "Donate",
  336.     server_settings = "Server settings",
  337.  
  338.     cash = "Cash",
  339.     job = "Job",
  340.     team = "Team",
  341.     playtime = "Total Time",
  342.     session = "Session",
  343.     kills = "Kills",
  344.     deaths = "Deaths",
  345.     ping = "Ping",
  346.  
  347.     alive = "Alive",
  348.     dead = "Dead",
  349.     free = "Free",
  350.     arrested = "In Jail",
  351.  
  352.     view_steam_profile = "View Steam profile",
  353.     copy_steamid = "Copy SteamID",
  354.     mute = "Mute",
  355.     unmute = "Unmute",
  356.  
  357.     -- TTT
  358.     karma = "Karma",
  359.     terrorists = "Terrorists",
  360.     spectators = "Spectators",
  361.     mia = "Missing in Action",
  362.     confirmed = "Confirmed Dead",
  363.     traitor = "Traitor",
  364.     detective = "Detective",
  365. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement