Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.80 KB | None | 0 0
  1. /**
  2. * General configuration
  3. **/
  4.  
  5. -- Main title of the F4 menu. Can be your server's name or whatever.
  6. LOUNGE_F4.Title = "SyndicateRP"
  7.  
  8. -- Pages to display on the F4 menu.
  9. LOUNGE_F4.Pages = {
  10. {
  11. id = "Tableau de bord", -- Used internally
  12. bg = Color(255, 168, 56), -- The background of the page. The default is 52, 73, 94
  13. text = "dashboard", -- The text to display on the left (links to the language table)
  14. icon = Material("shenesis/f4menu/house.png", "noclamp smooth"), -- The icon of the button
  15. enable = true, -- Whether this page should be listed or not
  16. },
  17. {
  18. id = "jobs",
  19. bg = Color(52, 73, 94),
  20. text = "jobs",
  21. icon = Material("shenesis/f4menu/user.png", "noclamp smooth"),
  22. enable = false,
  23. },
  24. {
  25. id = "Commandes",
  26. bg = Color(255, 168, 56),
  27. text = "commands",
  28. icon = Material("shenesis/f4menu/document.png", "noclamp smooth"),
  29. enable = true,
  30. },
  31. {
  32. id = "Achats",
  33. bg = Color(255, 168, 56),
  34. text = "purchase",
  35. icon = Material("shenesis/f4menu/basket.png", "noclamp smooth"),
  36. enable = true,
  37. },
  38.  
  39. // Bottom buttons
  40. {id = "website", text = "site", icon = Material("shenesis/f4menu/earth.png", "noclamp smooth"),
  41. callback = function()
  42. gui.OpenURL(LOUNGE_F4.Website)
  43. return false
  44. end,
  45. display = function()
  46. return LOUNGE_F4.Website and LOUNGE_F4.Website ~= ""
  47. end,
  48. enable = true,
  49. bottom = true,
  50. },
  51. {id = "donate", text = "boutique", icon = Material("shenesis/f4menu/star.png", "noclamp smooth"),
  52. callback = function()
  53. gui.OpenURL(LOUNGE_F4.Donate)
  54. return false
  55. end,
  56. display = function()
  57. return LOUNGE_F4.Donate and LOUNGE_F4.Donate ~= ""
  58. end,
  59. enable = true,
  60. bottom = true,
  61. },
  62. {id = "steamgroup", text = "groupe steam", icon = Material("shenesis/f4menu/steam.png", "noclamp smooth"),
  63. callback = function()
  64. gui.OpenURL(LOUNGE_F4.SteamGroup)
  65. return false
  66. end,
  67. display = function()
  68. return LOUNGE_F4.SteamGroup and LOUNGE_F4.SteamGroup ~= ""
  69. end,
  70. enable = true,
  71. bottom = true,
  72. },
  73. }
  74.  
  75. -- (Advanced) Icon to display for custom pages added via the F4MenuTabs hook.
  76. LOUNGE_F4.CustomTabNameIcon = {
  77. // Any custom tab called "Gangs" will have the user icon.
  78. ["Gangs"] = Material("shenesis/f4menu/user.png", "noclamp smooth"),
  79. }
  80.  
  81. -- Website to open when clicking on the "Website" button
  82. -- Leave empty to hide the website button.
  83. LOUNGE_F4.Website = "http://www.syndicateroleplay.fr/"
  84.  
  85. -- Website to open when clicking on the "Donate" button
  86. -- Leave empty to hide the donate button.
  87. LOUNGE_F4.Donate = "http://www.syndicateroleplay.fr/boutique/splash.php"
  88.  
  89. -- Website to open when clicking on the "Steam Group" button
  90. -- Leave empty to hide the steam group button.
  91. LOUNGE_F4.SteamGroup = "https://steamcommunity.com/groups/syndicate_roleplay"
  92.  
  93. -- Usergroups which are part of your server's staff.
  94. -- Used to count the number of online staff members in the Dashboard.
  95. LOUNGE_F4.StaffUsergroups = {
  96. ["founder"] = true,
  97. ["superadmin"] = true,
  98. }
  99.  
  100. -- Display the "Food" tab (if possible) in the Purchase page.
  101. LOUNGE_F4.EnableFoodTab = true
  102.  
  103. -- What method to use to retrieve the user group.
  104. -- Leave to 0 if you use ULX or no special admin mode listed below
  105. -- Set to 1 if you use ServerGuard
  106. LOUNGE_F4.UsergroupMode = 0
  107.  
  108. -- If for some reason you don't use money on your server, set this to true to hide money displays in tabs
  109. LOUNGE_F4.NoMoneyLabels = false
  110.  
  111. -- Set this to true to not hide JOBS with failed customChecks.
  112. LOUNGE_F4.KeepFailedCustomCheckJobs = false
  113.  
  114. -- Set this to true to not hide ENTITIES with failed customChecks.
  115. LOUNGE_F4.KeepFailedCustomCheckEnts = false
  116.  
  117. -- Order to use when sorting jobs.
  118. -- 0: Do not sort jobs; display them in the order they're created.
  119. -- 1: Sort them by NAME from A to Z.
  120. -- 2: Sort them by NAME from Z to A.
  121. -- 3: Sort them by SALARY from the highest to lowest.
  122. -- 4: Sort them by SALARY from the lowest to highest.
  123. LOUNGE_F4.JobsSortingOrder = 0
  124.  
  125. -- Order to use when sorting purchase items.
  126. -- 0: Do not sort items; display them in the order they're created.
  127. -- 1: Sort them by NAME from A to Z.
  128. -- 2: Sort them by NAME from Z to A.
  129. -- 3: Sort them by PRICE from the highest to lowest.
  130. -- 4: Sort them by PRICE from the lowest to highest.
  131. LOUNGE_F4.ItemsSortingOrder = 0
  132.  
  133. -- Job graph in Dashboard: Display the jobs by category rather than by each job
  134. -- This will not work on older versions of DarkRP that do not support categories!
  135. -- Note: You will also not be able to click on the bars to quickly switch jobs.
  136. LOUNGE_F4.JobGraphCategories = false
  137.  
  138. -- Purchase tab: display entities by their category. Only available on recent DarkRP versions.
  139. LOUNGE_F4.PurchaseByCategories = false
  140.  
  141. -- Jobs tab: always ask for model, even if there's only one in the job?
  142. LOUNGE_F4.AlwaysModelPrompt = false
  143.  
  144. -- vrondakis Leveling-System: Hide JOBS with a level too high for the player.
  145. LOUNGE_F4.HideHighLevelJobs = true
  146.  
  147. -- vrondakis Leveling-System: Hide ENTITIES with a level too high for the player.
  148. LOUNGE_F4.HideHighLevelEnts = true
  149.  
  150. /**
  151. * Style configuration
  152. **/
  153.  
  154. -- Font to use for normal text throughout the F4 menu.
  155. LOUNGE_F4.Font = "Circular Std Medium"
  156.  
  157. -- Font to use for bold text throughout the F4 menu.
  158. LOUNGE_F4.FontBold = "Circular Std Bold"
  159.  
  160. -- Color sheet. Only modify if you know what you're doing
  161. LOUNGE_F4.Style = {
  162. header = Color(52, 152, 219),
  163. bg = Color(52, 73, 94), -- Remember to change the color of the page backgrounds too!
  164. inbg = Color(44, 62, 80),
  165.  
  166. close_hover = Color(231, 76, 60),
  167. hover = Color(255, 255, 255, 10),
  168. hover2 = Color(255, 255, 255, 5),
  169.  
  170. text = Color(255, 255, 255),
  171. text_down = Color(0, 0, 0),
  172. textentry = Color(236, 240, 241),
  173.  
  174. menu = Color(127, 140, 141),
  175. }
  176.  
  177. -- Set this to true to alter the looks of jobs with failed customChecks.
  178. -- Setting it to true will disable the normal looks of the job button.
  179. LOUNGE_F4.DoPaintJobFailedCheck = false
  180.  
  181. -- Advanced: custom paint function for jobs with failed customChecks.
  182. -- Only modify if you know what you're doing.
  183. LOUNGE_F4.PaintJobFailedCheck = function(me, w, h)
  184. local b = LOUNGE_F4.DoPaintJobFailedCheck
  185. if (b) then
  186. draw.RoundedBox(4, 0, 0, w, h, LOUNGE_F4.Style.close_hover) -- Sets the background of the job to red if the customCheck is failed.
  187. end
  188.  
  189. return b
  190. end
  191.  
  192. /**
  193. * Language configuration
  194. **/
  195.  
  196. -- "Clean" Usergroup names to display on the dashboard.
  197. -- Usergroups not in this table will be displayed directly, which may not look good.
  198. LOUNGE_F4.CleanUsergroups = {
  199. ["user"] = "User",
  200. ["respected"] = "Respected",
  201. ["donator"] = "Donator",
  202. ["vip"] = "VIP",
  203. ["admin"] = "Administrator",
  204. ["superadmin"] = "Super Administrator",
  205. }
  206.  
  207. -- Various strings used throughout the F4 Menu. Change them to your language here.
  208. -- %s and %d are special strings replaced with relevant info, keep them in the string!
  209.  
  210. // FRENCH Translation: https://pastebin.com/6jYRtxYW
  211.  
  212. LOUNGE_F4.Language = {
  213. dashboard = "Menu principal",
  214. jobs = "Emplois",
  215. commands = "Commandes",
  216. purchase = "Acheter",
  217. website = "Site internet",
  218. donate = "Faire un don",
  219. steamgroup = "Groupe Steam",
  220.  
  221. players = "Joueurs",
  222. staff_online = "Modérateurs en ligne",
  223. job_graph = "Graphique des emplois",
  224. server_economy = "Économie du serveur",
  225. money_in_circulation = "Monnaie en circulation",
  226. richest_player_online = "Joueur le plus riche",
  227. model_selection = "Choix du modèle",
  228. entities = "Entités",
  229. shipments = "Cargaisons",
  230. vehicles = "Véhicules",
  231. ammo = "Munitions",
  232. food = "Nourriture",
  233. level_x = "Niveau %d",
  234.  
  235. toggle = "Alterner",
  236. click_to_become_x = "Cliquer pour devenir %s",
  237. salary = "Salaire",
  238. weapons = "Armes",
  239. vote_to_become_x = "Voter pour devenir %s",
  240. become_x = "Devenir %s",
  241. free = "Gratuit",
  242. search = "Chercher",
  243. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement