Advertisement
Guest User

Aden Character System

a guest
Mar 27th, 2022
2,186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.41 KB | None | 0 0
  1. Aden_DC.Config.showRoom = {}
  2. Aden_DC.Config.showRoom[1] = { // Show Room DarkRP
  3.     [1] = {
  4.         model = "models/adc/adc_showroom_1.mdl",
  5.         pos = Vector(120, 0, 66),
  6.         ang = Angle(0, 0, 0),
  7.     },
  8.     [2] = {
  9.         model = "models/mark2580/gtav/mp_apa_06/wardrobe/apa_mpa6_wardrobe_details_high.mdl",
  10.         pos = Vector(130, 0, 61),
  11.         ang = Angle(0, 90, 0),
  12.     },
  13.     [3] = {
  14.         model = "models/mark2580/gtav/mp_apa_06/bedroom/apa_mp_h_acc_artwalll_02_high.mdl",
  15.         pos = Vector(219, 0, 65),
  16.         ang = Angle(0, 180, 0),
  17.     },
  18. }
  19.  
  20. Aden_DC.Config.showRoom[2] = { // Show Room Star Wars
  21.     [1] = {
  22.         model = "models/props/adc/adc_showroom2.mdl",
  23.         pos = Vector(100, 100, 60),
  24.         ang = Angle(0, -160, 0),
  25.     },
  26. }
  27.  
  28. Aden_DC.Config.showRoom[3] = { // Show Room Military
  29.     [1] = {
  30.         model = "models/props/adc/adc_showroom3.mdl",
  31.         pos = Vector(40, -130, 190),
  32.         ang = Angle(0, -80, 0),
  33.     },
  34.     [2] = {
  35.         model = "models/Items/ammocrate_ar2.mdl",
  36.         pos = Vector(160, -150, 10),
  37.         ang = Angle(0, 100, 0),
  38.     },
  39.     [3] = {
  40.         model = "models/Items/ammocrate_ar2.mdl",
  41.         pos = Vector(160, -150, 42),
  42.         ang = Angle(0, 100, 0),
  43.     },
  44.     [4] = {
  45.         model = "models/Items/item_item_crate.mdl",
  46.         pos = Vector(160, -160, 57),
  47.         ang = Angle(0, 100, 0),
  48.     },
  49.     [5] = {
  50.         model = "models/maxofs2d/gm_painting.mdl",
  51.         pos = Vector(188, -160, 160),
  52.         ang = Angle(0, -170, 0),
  53.     },
  54.     [6] = {
  55.         model = "models/Items/ammoCrate_Rockets.mdl",
  56.         pos = Vector(160, 30, 10),
  57.         ang = Angle(0, 10, 0),
  58.     },
  59. }
  60.  
  61. Aden_DC.Config.showRoomChoice = 1 // Choose your show room : 1 = DarkRP - 2 = Star Wars - 3 = Military
  62. // if you want use a 2d Material for the background :
  63. // Aden_DC.Config.showRoomChoice = "materials/yourmaterials.png"
  64.  
  65. Aden_DC.Config.lightMode = 0.5 // Brithness of the room [0 - 1]
  66. Aden_DC.Config.spotLight = true // Enable spot light
  67.  
  68. Aden_DC.Config.Model = { // All model the player can choose when he create the character ONLY IF YOU DONT USE THE FACTION SYSTEM
  69.     [1] = "models/player/group03m/male_02.mdl",
  70.     [2] = "models/player/group03/male_01.mdl",
  71.     [3] = "models/player/group03m/male_01.mdl",
  72.     [4] = "models/player/group01/male_06.mdl",
  73.     [5] = "models/player/group03/male_08.mdl",
  74.     [6] = "models/player/group03/male_09.mdl",
  75.     [7] = "models/player/group01/female_03.mdl",
  76.     [8] = "models/player/group03m/female_03.mdl",
  77.     [9] = "models/player/group03m/male_04.mdl",
  78. }
  79.  
  80. Aden_DC.Config.enableFaction = false // Enable Faction systeme
  81.  
  82. hook.Add("DarkRPFinishedLoading", "ADC::DarkRPFinishedLoading::LoadConfig", function()
  83.     Aden_DC.Config.defaultJobs = { // The Jobs not in a faction
  84.         [TEAM_CITIZEN] = true,
  85.     }
  86.     Aden_DC.Config.listFaction = {
  87.         [1] = {
  88.             name = "Police", // The name of the faction
  89.             mat = Material("materials/img1.png"), // The material of the facton example : Material("materials/adc_materials/jedi.png")
  90.             defaultJobs = { // Jobs the player can select when he create her character and join the faction (Max 3)
  91.                 [TEAM_POLICE] = true,
  92.             },
  93.             jobs = { // Whitelist jobs of the faction
  94.                 [TEAM_POLICE] = true,
  95.                 [TEAM_CHIEF] = true,
  96.             },
  97.         },
  98.         [2] = {
  99.             name = "Criminal",
  100.             mat = Material("materials/img2.png"), // example : Material("materials/adc_materials/sith.png")
  101.             defaultJobs = {
  102.                 [TEAM_GANG] = true,
  103.             },
  104.             jobs = {
  105.                 [TEAM_GANG] = true,
  106.                 [TEAM_MOB] = true,
  107.             }
  108.         },
  109.     }
  110. end)
  111.  
  112. Aden_DC.Config.maxCharacter = {
  113.     [1] = "New Character", // If you set only a text, everyone can create a character
  114.     [2] = "New Character",
  115.     [3] = {
  116.         name = "VIP Only",
  117.         color = Color(241, 253, 91),
  118.         msg = "Your are not VIP !",
  119.         usergroups = { // Only this usergroups can create a character
  120.             ["VIP"] = true,
  121.             ["superadmin"] = true
  122.         }
  123.     },
  124.     /*[5] = {
  125.         name = "Superadmin Only",
  126.         color = Color(237, 28, 36),
  127.         usergroups = {
  128.             ["superadmin"] = true,
  129.         }
  130.     },*/
  131. }
  132.  
  133. Aden_DC.Config.DefaultLang = "en" // Language  (check shared/sh_lang.lua)
  134. Aden_DC.Config.DebugMode = false // Enable the close button in the menu
  135. Aden_DC.Config.MinimumYears = 1970 // Minimum years of birth
  136. Aden_DC.Config.CurrentYears = 2021 // Years (config for example WW2 1945)
  137. Aden_DC.Config.PriceName = 500 // The cost of change name
  138. Aden_DC.Config.NPCModel = "models/breen.mdl" // NPC Model
  139. Aden_DC.Config.Music = false // Start a music when the player open the menu ex : "sound/music/hl2_song12_long.mp3" or a URL "https://cdn.discordapp.com/attachments/900837847412637767/957577143364227082/ambiance_aps.wav"
  140. // for example if you want a music
  141. // Aden_DC.Config.Music = "https://cdn.discordapp.com/attachments/900837847412637767/957577143364227082/ambiance_aps.wav    "
  142.  
  143. Aden_DC.Config.ModelScale = true // Enable the scale model
  144. Aden_DC.Config.ModelMin = 0.9 // Model Scale Min
  145. Aden_DC.Config.ModelMax = 1.1 // Model Scale Max
  146.  
  147. Aden_DC.Config.Open = {}
  148.  
  149. Aden_DC.Config.Open.InitialSpawn = true // Open the menu when the player spawn for the first time (Recommended)
  150. Aden_DC.Config.Open.Respawn = true // Open the menu when the player respawn (If you set at false the player respawn with the last selected character)
  151. Aden_DC.Config.Open.Command = "!adc" // To disable set to false
  152. Aden_DC.Config.Open.CommandAdmin = "!adc_admin" // Admin command
  153. Aden_DC.Config.Open.Key = false // Open the menu with a KEY (example KEY_F2) | To disable set to false
  154. //Aden_DC.Config.Open.Key = KEY_F2
  155.  
  156. Aden_DC.Config.Open.Acces = {
  157.     ["superadmin"] = true // Who have acces to admin menu
  158. }
  159.  
  160. Aden_DC.Config.blackListName = { // Name blacklist
  161.     [""] = true,
  162.     ["Putain"] = true,
  163.     ["Shit"] = true,
  164.     ["Merde"] = true,
  165. }
  166.  
  167. Aden_DC.Config.blackListWeapons = { // Weapons not save
  168.     ["door_ram"] = true,
  169.     ["arrest_stick"] = true,
  170.     ["unarrest_stick"] = true,
  171.     ["stunstick"] = true,
  172.     ["weaponchecker"] = true,
  173.     ["gmod_camera"] = true,
  174.     ["gmod_tool"] = true,
  175.     ["pocket"] = true,
  176.     ["keys"] = true,
  177.     ["weapon_keypadchecker"] = true,
  178.     ["weapon_physgun"] = true,
  179.     ["weapon_physcannon"] = true,
  180. }
  181.  
  182. Aden_DC.Config.saveInformations = { // Set the value you dont want on false
  183.     ["weapon"] = true,
  184.     ["job"] = true,
  185.     ["position"] = true,
  186.     ["health"] =  true,
  187.     ["armor"] = true,
  188.     ["money"] = true,
  189.     ["food"] = true,
  190. }
  191.  
  192. //////////////////////Bellow this line don't touch//////////////////////
  193.  
  194. for k, v in pairs(Aden_DC.Config.blackListName) do
  195.    Aden_DC.Config.blackListName[string.lower(k)] = v
  196. end
  197.  
  198. if isnumber(Aden_DC.Config.showRoomChoice) then
  199.    Aden_DC.Config.showRoom = Aden_DC.Config.showRoom[Aden_DC.Config.showRoomChoice]
  200. else
  201.    Aden_DC.Config.showRoom = Material(Aden_DC.Config.showRoomChoice)
  202. end
  203.  
  204. if Aden_DC.Config.Music and string.StartWith(Aden_DC.Config.Music, "http") then
  205.    Aden_DC.Config.SoundFunc = sound.PlayURL
  206. else
  207.    Aden_DC.Config.SoundFunc = sound.PlayFile
  208. end
  209.  
  210. Aden_DC.Config.listFaction = Aden_DC.Config.listFaction or {}
  211. Aden_DC.Config.defaultJobs = Aden_DC.Config.defaultJobs or {}
  212.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement