Advertisement
Guest User

Untitled

a guest
Mar 24th, 2020
3,213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.54 KB | None | 0 0
  1. ----------- NO TOUCHIE -----------
  2. local cfg = XeninDS.ConfigWrapper()
  3. ----------- NO TOUCHIE -----------
  4.  
  5. ------------------------------
  6. -- Add chat commands to open the shop with
  7. -- If you don't want chat commands, simply just don't add commands
  8. cfg:addChatCommand("!deathscreen")
  9. cfg:addChatCommand("/deathscreen")
  10. cfg:addChatCommand("!ds")
  11. cfg:addChatCommand("/ds")
  12. ------------------------------
  13.  
  14.  
  15. ------------------------------
  16. -- What language to use?
  17. -- You can find the languages you can use here: https://gitlab.com/sleeppyy/xenin-languages/-/tree/master/deathscreen
  18. -- You don't need to write the .json part
  19. --
  20. -- If you want to add your own language you can
  21. -- 1. Create a pull request (create new file) that will be uploaded to that website with the language
  22. -- 2. Use a second argument in the :setLanguage function
  23. --
  24. -- How to do now #2. This will set the language without needing to use the version from a website.
  25. -- cfg:SetLanguage("french", [[
  26. --   {
  27. --     "phrases": {
  28. --       "dashboard": {
  29. -- 
  30. --          }
  31. --      }
  32. --  }
  33. -- ]])
  34. -- So for example
  35. -- cfg:setLanguage("russian", [[
  36. --     YOUR TRANSLATION HERE
  37. -- ]])
  38. -- copy the contents of english.json and translate it here
  39. --
  40. cfg:setLanguage("english")
  41. ------------------------------
  42.  
  43. ------------------------------
  44. -- What currency to use?
  45. -- You can look at the "currencies" folder to see all available currencies.
  46. cfg:setCurrency("darkrp")
  47. ------------------------------
  48.  
  49. ------------------------------
  50. -- What level system to use?
  51. -- Comment this out if you don't want to use, and uncomment if you want to use.
  52. -- You can look at the "levels" folder to see all available levels.
  53. --
  54. -- cfg:setLevelSystem("vrondakis")
  55. ------------------------------
  56.  
  57. ------------------------------
  58. -- How thick should the outline around cards be? In pixels
  59. cfg:setOutline(1)
  60. ------------------------------
  61.  
  62. ------------------------------
  63. -- Should there be a grey filter on top of screen when you die?
  64. cfg:setGreyFilterOn(true)
  65. ------------------------------
  66.  
  67. ------------------------------
  68. -- What's the title of the menu?
  69. cfg:setMenuTitle("Xenin Deathscreen")
  70. ------------------------------
  71.  
  72. ------------------------------
  73. -- What title should the NPC have?
  74. cfg:setNPCTitle("Deathscreen Cards")
  75. ------------------------------
  76.  
  77. ------------------------------
  78. -- What colour should the outline on the NPC be?
  79. -- You can use Color(r, g, b) on this, but default is a variable
  80. cfg:setNPCColor(XeninUI.Theme.Blue)
  81. ------------------------------
  82.  
  83. ------------------------------
  84. -- What model should the NPC use?
  85. cfg:setNPCModel("models/humans/group02/female_01.mdl")
  86. ------------------------------
  87.  
  88. -- Should armor be shown in the deathscreen?
  89. cfg:setArmorEnabled(true)
  90. ------------------------------
  91.  
  92. ------------------------------
  93. -- How long till they can respawn again. In seconds.
  94. -- Set to 0 to disable it
  95. cfg:setRespawnTime(5)
  96. ------------------------------
  97.  
  98. ------------------------------
  99. -- When a player dies, should the player's camera follow the killer?
  100. -- This is essentially ghosting, so disable if you find it a problem.
  101. cfg:setFollowKiller(true)
  102. ------------------------------
  103.  
  104. ------------------------------
  105. -- Where should the deathscreen be located?
  106. -- Possible options:
  107. -- "top"
  108. -- "middle"
  109. -- "bottom"
  110. cfg:setPosition("bottom")
  111. ------------------------------
  112.  
  113. ------------------------------
  114. -- The amount of pixels offset from the top/bottom of the screen.
  115. -- If position is set to middle this does nothing
  116. cfg:setMargin(32)
  117. ------------------------------
  118.  
  119. ------------------------------
  120. -- What card should users by default use?
  121. -- This is a imgur direct link id, and cannot be animated.
  122. cfg:setDefaultCard("QxH0874")
  123. ------------------------------
  124.  
  125. ------------------------------
  126. -- Instead of showing a team, should it show usergroup?
  127. cfg:setUsergroupEnabled(false)
  128. -- If usergroups are enabled, add your usergroup here
  129. -- cfg:addUsergroup("rank_name", "display_name", color)
  130. -- Example:
  131. -- cfg:addUsergroup("tmod", "Trial Moderator", Color(255, 0, 0))
  132. cfg:addUsergroup("superadmin", "Superadmin", XeninUI.Theme.Green)
  133. ------------------------------
  134.  
  135. ------------------------------
  136. -- Adds a card to the "suicide" deathscreen.
  137. -- Use an imgur direct image ID.
  138. -- It'll choose a random one every time
  139. cfg:addSuicideCard("OaHa1fJ")
  140. cfg:addSuicideCard("ZTH3VDQ")
  141. ------------------------------
  142.  
  143. ------------------------------
  144. -- Adds a card to the "world" deathscreen.
  145. -- Same principle as suicide card
  146. cfg:addWorldCard("OaHa1fJ")
  147. ------------------------------
  148.  
  149. -- You can add normal cards, and animated cards here.
  150. -- Lets start off with a normal card.
  151. -- If you want this in voice, here's a YouTube video explaining it:  https://www.youtube.com/watch?v=tb6mfW5FErA
  152. -- The first part after :addCard is the "id" of the card.
  153. -- This ID HAS to be unique.
  154. -- Inside the { } table, there's several options.
  155. ------------------------------
  156. -- name = "Displayed name"
  157. ------------------------------
  158. -- price = priceInCurrency
  159. ------------------------------
  160. -- src = "imgur_direct_id"
  161. ------------------------------
  162. -- category = "Category name"
  163. ------------------------------
  164. -- unpurchasable = true (optional)
  165. ------------------------------
  166. -- You can add a currency, which will overwrite the default currency.
  167. -- Say if you have Pointshop 2 installed, you can defaault to "ps2" and use "ps2_premium" for specific cards
  168. -- currency = "ps2_premium"
  169. ------------------------------
  170. -- usergroupRestriction = {
  171. --   ["superadmin"] = true,
  172. -- } (optional)
  173. -- This makes it so only those usergroups can buy it
  174. -- Don't mix unpurchasable with usergroupRestriction, unpurchasable will overwrite this
  175. ------------------------------
  176. -- Now lets move onto animated cards. All the previous fields are the same except for one.
  177. -- For src you have to put a folder relative to "xenin/deathscreen/"
  178. -- src = "animated/my_card"
  179. -- I recommend you watch the tutorial here: https://www.youtube.com/watch?v=tb6mfW5FErA
  180. ------------------------------
  181. -- Animated cards also have timing. This is the delay between frames.
  182. -- times = { 0.08, 1 } (optional, defaults to { 0.05, 0.05 })
  183. -- This will make it so that there's a 0.08 second delay between each frame, except for after the last.
  184. -- After the last frame there'll be 1 second delay. It's essentially a "restart delay"
  185. -- If you don't want this delay, just set the frame delay, and restart delay to the same value
  186. cfg:addCard("cod_bo3_survialist", {
  187.     name = "Survialist",
  188.     price = 50000,
  189.     src = "aAuAoV0",
  190.     category = "Call of Duty"
  191. })
  192.  
  193. cfg:addCard("cod_bo3_shadows", {
  194.     name = "Shadows",
  195.     price = 35000,
  196.     src = "27zp0Ht",
  197.     category = "Call of Duty"
  198. })
  199.  
  200. cfg:addCard("cod_bo3_dead_aim", {
  201.     name = "Dead Aim",
  202.     price = 50000,
  203.     src = "7vGBEXs",
  204.     category = "Call of Duty"
  205. })
  206.  
  207. cfg:addCard("cod_bo3_tango_down", {
  208.     name = "Tango Down",
  209.     price = 50000,
  210.     src = "UP4J6pl",
  211.     category = "Call of Duty"
  212. })
  213.  
  214. cfg:addCard("cod_bo3_fractal", {
  215.     name = "Fractal",
  216.     price = 50000,
  217.     src = "HWy4NM4",
  218.     category = "Call of Duty"
  219. })
  220.  
  221. cfg:addCard("cod_bo3_squid", {
  222.     name = "Squid. 45",
  223.     price = 5000,
  224.     src = "ctNWbnq",
  225.     unpurchasable = true,
  226.     category = "Call of Duty"
  227. })
  228.  
  229. cfg:addCard("tf2_titan", {
  230.     name = "Titan",
  231.     price = 45000,
  232.     src = "XShEv2i",
  233.     category = "Art"
  234. })
  235.  
  236. cfg:addCard("cod_mw_covering", {
  237.     name = "Covering",
  238.     price = 38500,
  239.     src = "BEqVbEG",
  240.     category = "Call of Duty"
  241. })
  242.  
  243. cfg:addCard("custom_unnamed_goose", {
  244.     name = "Unnamed goose",
  245.     price = 45000,
  246.     src = "7uBXBAO",
  247.     category = "Funny"
  248. })
  249.  
  250. cfg:addCard("custom_cat", {
  251.     name = "Cat",
  252.     price = 1,
  253.     src = "jqSeKUp",
  254.     category = "Relaxing"
  255. })
  256.  
  257. cfg:addCard("custom_temple", {
  258.     name = "Temple",
  259.     price = 55000,
  260.     src = "FUM8hEV",
  261.     category = "Relaxing"
  262. })
  263.  
  264. cfg:addCard("custom_elephant", {
  265.     name = "Letter",
  266.     price = 25000,
  267.     src = "8A9k2BZ",
  268.     category = "Others"
  269. })
  270.  
  271. cfg:addCard("custom_stare", {
  272.     name = "Bruh moment",
  273.     price = 45000,
  274.     src = "LbT2qda",
  275.     category = "Funny"
  276. })
  277.  
  278. cfg:addCard("custom_george", {
  279.     name = "George the Goose",
  280.     price = 1500000,
  281.     src = "Lo90f0T.png",
  282.     category = "Funny"
  283. })
  284.  
  285. -- Anime/cartoon related images
  286. cfg:addCard("custom_anime_ghost_in_the_shell", {
  287.     name = "Ghost in the Shell",
  288.     price = 85000,
  289.     src = "x17fhlx",
  290.     category = "Anime"
  291. })
  292.  
  293. cfg:addCard("custom_anime_smile", {
  294.     name = "Smiling couple",
  295.     price = 100000,
  296.     src = "l3dBolA",
  297.     category = "Relaxing"
  298. })
  299.  
  300. cfg:addCard("custom_anime_food", {
  301.     name = "The Menu",
  302.     price = 75000,
  303.     src = "WCPUTx4",
  304.     category = "Anime"
  305. })
  306.  
  307. cfg:addCard("custom_anime_magician", {
  308.     name = "The Magician",
  309.     price = 72000,
  310.     src = "j9IoQoH",
  311.     category = "Anime"
  312. })
  313.  
  314. cfg:addCard("custom_anime_spongebob", {
  315.     name = "Spongebob t-shirt",
  316.     price = 58000,
  317.     src = "HY1dViW",
  318.     category = "Anime"
  319. })
  320.  
  321. cfg:addCard("custom_anime_over_the_shoulder", {
  322.     name = "Over the shoulder",
  323.     price = 125000,
  324.     src = "ERwsTy2",
  325.     category = "Anime"
  326. })
  327.  
  328. cfg:addCard("custom_art_garden", {
  329.     name = "Garden",
  330.     price = 80000,
  331.     src = "SxSlnjg",
  332.     category = "Art"
  333. })
  334.  
  335. cfg:addCard("custom_art_towersofdoom", {
  336.     name = "Towers of Doom",
  337.     price = 60000,
  338.     src = "9aVlQTm",
  339.     category = "Art",
  340. })
  341.  
  342. cfg:addCard("custom_shattered", {
  343.     name = "Shattered",
  344.     price = 50000,
  345.     src = "PZDSzvr",
  346.     category = "Art",
  347. })
  348.  
  349. cfg:addCard("custom_art_pathway", {
  350.     name = "Pathway",
  351.     price = 100000,
  352.     src = "g4t9POh",
  353.     category = "Art",
  354. })
  355.  
  356. cfg:addCard("custom_art_rogue", {
  357.     name = "Rogue",
  358.     price = 82500,
  359.     src = "SulO6fP",
  360.     category = "Art"
  361. })
  362.  
  363. cfg:addCard("custom_art_lucifer", {
  364.     name = "Lord Lucifer",
  365.     price = 225000,
  366.     src = "dVWzWTK",
  367.     category = "Art"
  368. })
  369.  
  370. cfg:addCard("custom_art_werewolf", {
  371.     name = "Werewolf",
  372.     price = 80000,
  373.     src = "soz0rA6",
  374.     category = "Art"
  375. })
  376.  
  377. cfg:addCard("custom_art_swamp", {
  378.     name = "Swamp",
  379.     price = 73000,
  380.     src = "wWGRI2D",
  381.     category = "Art"
  382. })
  383.  
  384. cfg:addCard("custom_art_game_time", {
  385.     name = "Game time",
  386.     price = 45000,
  387.     src = "ixl4bgo",
  388.     category = "Art"
  389. })
  390.  
  391. cfg:addCard("custom_art_project_hero", {
  392.     name = "Project Hero",
  393.     price = 182500,
  394.     src = "PpUWG6N",
  395.     category = "Art"
  396. })
  397. cfg:addCard("custom_art_mario", {
  398.     name = "Mario",
  399.     price = 42000,
  400.     src = "sAZ3sVv",
  401.     category = "Art"
  402. })
  403. cfg:addCard("custom_art_anessix", {
  404.     name = "Anessix",
  405.     price = 69000,
  406.     src = "URuZdOn",
  407.     category = "Art"
  408. })
  409. cfg:addCard("custom_art_stadium", {
  410.     name = "Stadium",
  411.     price = 58300,
  412.     src = "GKm8HTl",
  413.     category = "Art"
  414. })
  415. cfg:addCard("custom_relaxing_sunset", {
  416.     name = "Sunset",
  417.     price = 125000,
  418.     src = "eRU3Ddi",
  419.     category = "Relaxing"
  420. })
  421. cfg:addCard("custom_anime_pikapika", {
  422.     name = "Pika pika",
  423.     price = 33333,
  424.     src = "OIvWJi5",
  425.     category = "Anime"
  426. })
  427. cfg:addCard("custom_art_akali_lol", {
  428.     name = "Akali",
  429.     price = 52000,
  430.     src = "nhQHDgb",
  431.     category = "Art"
  432. })
  433. cfg:addCard("custom_art_tomb_raider_lara", {
  434.     name = "Lara Croft",
  435.     price = 55000,
  436.     src = "vrg9gbi",
  437.     category = "Art"
  438. })
  439. cfg:addCard("custom_art_anonymous", {
  440.     name = "Anonymous",
  441.     price = 133700,
  442.     src = "TvbSbDT",
  443.     category = "Art"
  444. })
  445. cfg:addCard("custom_2020_be_like", {
  446.     name = "2020 be like",
  447.     price = 50000,
  448.     src = "0vJ2ckt",
  449.     category = "Others"
  450. })
  451.  
  452. -- Animated cards --
  453. cfg:addAnimatedCard("custom_fatally_wounded", {
  454.     name = "Fatally wounded",
  455.     price = 250000,
  456.     src = "animated/wounded",
  457.     times = { 0.05, 0.05 },
  458.     category = "Others"
  459. })
  460.  
  461. cfg:addAnimatedCard("custom_machinegun", {
  462.     name = "Machine gun",
  463.     price = 350000,
  464.     src = "animated/machinegun",
  465.     times = { 0.03, 0.03 },
  466.     category = "Others"
  467. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement