Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.77 KB | None | 0 0
  1. /*-don't touch-*/ local _blackberry = _blackberry or {};
  2. /*-don't touch-*/ _blackberry.character_base = _blackberry.character_base or {};
  3. /*-don't touch-*/ local core = _blackberry.character_base;
  4. /*-don't touch-*/ core.config = core.config or {};
  5.  
  6. /*---------------------------------------------------------------------------
  7. Base config
  8. ---------------------------------------------------------------------------*/
  9. core.config["title"] = "Artex-Roleplay"; // Name of window
  10. core.config["main_color"] = Color(255, 209, 55); // Default: Color(255, 209, 55)
  11. core.config["start_points"] = 35; // Start points for attributes
  12. core.config["create_sound"] = "sound/music/hl2_song19.mp3"; // Music in char creation menu
  13. core.config["need_recognize"] = true; // Enable recognze system
  14. core.config["hunger"] = true; // Hunger mod enabled
  15. core.config["disable_defult_hud"] = true; // Disable default hud
  16. core.config["max_jail_time"] = 10; // Optional time for arres by Karma of player. The smaller the karma, the longer the arrest
  17. core.config["karma_kills_point"] = 2; // How many kills for 1 karma point. minimum 1 kill for 1 point
  18. core.config["recognize_area"] = 300; // Recognize area
  19. core.config["change_name_price"] = 5000; // Price for changename - 0 for free or false for disable
  20. core.config["mysqloo_enabled"] = false; // False for local db or true for MySQLOO v9.x https://forum.facepunch.com/gmodgd/jjdq/gmsv-mysqloo-v9-Rewritten-MySQL-Module-prepared-statements-transactions/1/
  21. core.config["disable_notify"] = true; // Disable blackberry message with status notify
  22. core.config["custom_stamina"] = false; // True for disable stamina by this addon
  23. core.config["hud_dark_particles"] = true; // particles for darkside of hud
  24. ---- HP Regen settings
  25. core.config["regeneration_health"] = false; // Regeneration health by attribute - every 5 - 15 sec (by attribute status) +core.config["regeneration_hp_val"] hp;
  26. core.config["regeneration_hp_val"] = 2; // how much regen hp in some tick; use ceil number
  27. core.config["regeneration_hp_min"] = 5; // time in sec. Min of tick with regeneration = 100; - in 5 sec +2 hp
  28. core.config["regeneration_hp_max"] = 15; // time in sec. Max of tick with regeneration = 0; - in 15 sec +2 hp
  29. core.config["perma_models"] = true; // setting for one model for all teams non isCP
  30. /*---------------------------------------------------------------------------
  31. Mysql settings for core.config["mysqloo_enabled"]
  32. ---------------------------------------------------------------------------*/
  33. core.config["mysql_host"] = "localhost"; // host ip
  34. core.config["mysql_database"] = "bd_name"; // database name
  35. core.config["mysql_user"] = "root"; // user name
  36. core.config["mysql_password"] = "pass"; // user password
  37. core.config["mysql_port"] = 3306; // Port. default: 3306
  38.  
  39. /*---------------------------------------------------------------------------
  40. Admin access in F2
  41. ---------------------------------------------------------------------------*/
  42. core.config["access_groups"] = {"superadmin"}; // Groups for access in F2 admin menu
  43.  
  44. /*---------------------------------------------------------------------------
  45. Stamina config
  46. ---------------------------------------------------------------------------*/
  47. core.config["stamina_min_run_speed"] = 240; // Speed when player ran with strenght attribute is 0
  48. core.config["stamina_max_run_speed"] = 320; // when strengt attribute is max
  49.  
  50. core.config["staming_jump_power"] = 200; // attribute is 0
  51. core.config["staming_max_jump_power"] = 260; // max attribute
  52.  
  53. /*---------------------------------------------------------------------------
  54. Advanced config
  55. ---------------------------------------------------------------------------*/
  56. core.config["bot_default"] = { // Default bot character name and description
  57. ["name"] = "Gabe Newell",
  58. ["description"] = "Very fat and big man from valve"
  59. }
  60. /*---------------------------------------------------------------------------
  61. Models
  62. Description:
  63. 1 - If you want to use default police model by job settings, then simple write only model,
  64. 2 - If you want to use custom police model for some models, then use table, where [1] = cititzen, [2] = police model
  65. Example 1:
  66. "model/path/citizen_model1.mdl",
  67. "model/path/citizen_model2.mdl",
  68. "model/path/citizen_model3.mdl",
  69. Example 2:
  70. {"model/path/citizen_model1.mdl", "model/path/police_model1.mdl"},
  71. {"model/path/citizen_model2.mdl", "model/path/police_model2.mdl"},
  72. {"model/path/citizen_model3.mdl", "model/path/police_model3.mdl"},
  73. !!! You can use multiply variant:
  74. {"model/path/citizen_model1.mdl", "model/path/police_model1.mdl"},
  75. {"model/path/citizen_model2.mdl", "model/path/police_model2.mdl"},
  76. "model/path/citizen_model3.mdl",
  77. "model/path/citizen_model4.mdl",
  78. {"model/path/citizen_model5.mdl", "model/path/police_model5.mdl"}
  79. -- For 1, 2, and 5 id - used custom police model
  80. -- For 3 and 4 id - used model by default job settings
  81. And u can make custom model for other teams if you want; See:
  82. {
  83. "model/path/citizen_model1.mdl", // For all teams
  84. "model/path/police_model1.mdl", // For Police team
  85. [-TEAM_NAME] = "model/path/model1.mdl", // For custom team
  86. }
  87. --- !!! ATTENTION ADD - to TEAM_*** or this doesn't worked !!! ---
  88. Example: you have TEAM_GANGSTER you need add - to TEAM_GANGSTER = -TEAM_GANGSTER;
  89.  
  90. DEVS:
  91. PRIORITY 1 - job models from ["models"]
  92. PRIORITY 2 - job models from ["team_models"]
  93. PRIORITY 3 [isCP] - from DarkRP Jobs settings or default choosed model from ["models"][1] if table or ["models"];
  94. ---------------------------------------------------------------------------*/
  95. -- PRIORITY [1]
  96. core.config["models"] = { // Models for choose
  97. ["male"] = {
  98. "models/player/group01/male_01.mdl",
  99. "models/player/Group01/Male_02.mdl",
  100. "models/player/Group01/male_03.mdl",
  101. "models/player/Group01/Male_04.mdl",
  102. "models/player/Group01/Male_05.mdl",
  103. "models/player/Group01/Male_06.mdl",
  104. "models/player/Group01/Male_07.mdl",
  105. "models/player/Group01/Male_08.mdl",
  106. "models/player/Group01/Male_09.mdl",
  107. },
  108. ["female"] = {
  109. "models/player/Group01/Female_01.mdl",
  110. "models/player/Group01/Female_02.mdl",
  111. "models/player/Group01/Female_03.mdl",
  112. "models/player/Group01/Female_04.mdl",
  113. "models/player/Group01/Female_06.mdl"
  114. }
  115. }
  116.  
  117. /*---------------------------------------------------------------------------
  118. Example:
  119. core.config["models"] = {
  120. ["male"] = {
  121. {
  122. "male1.model",
  123. "male1_police.model",
  124. [-TEAM_GUNDEALER] = "male1_gundealer.model"
  125. }, {
  126. "male2.model",
  127. "male2_police.model",
  128. [-TEAM_GUNDEALER] = "male2_gundealer.model"
  129. }, {
  130. "male3.model",
  131. "male3_police.model",
  132. [-TEAM_GUNDEALER] = "male3_gundealer.model"
  133. },
  134. },
  135. ["female"] = {
  136. {
  137. "female1.model",
  138. "female1_police.model",
  139. [-TEAM_GUNDEALER] = "female1_gundealer.model"
  140. }, {
  141. "female2.model",
  142. "female2_police.model",
  143. [-TEAM_GUNDEALER] = "female2_gundealer.model"
  144. }, {
  145. "female3.model",
  146. "female3_police.model",
  147. [-TEAM_GUNDEALER] = "female3_gundealer.model"
  148. },
  149. }
  150. }
  151.  
  152. ---------------------------------------------------------------------------*/
  153.  
  154. core.config["default_appearance"] = {
  155. "Ordinary",
  156. "Tall",
  157. "Shot",
  158. "Fat",
  159. "Thin",
  160. "Pimply",
  161. "Stupid",
  162. "Angry",
  163. "Darth Vader"
  164. };
  165.  
  166. core.config["default_eyes_color"] = {
  167. "Blau",
  168. "Grün",
  169. "Braun",
  170. "Schwarz"
  171. };
  172.  
  173. /*-don't touch-*/ core.config["steps"] = {};
  174. /*-don't touch-*/ local store = core.config["steps"];
  175. /*---------------------------------------------------------------------------
  176. Steps names
  177. ---------------------------------------------------------------------------*/
  178. store[#store + 1] = {
  179. ["name"] = "Basisinformationen",
  180. ["description"] = "Basisinformationen zu deinem Charakter"
  181. };
  182. store[#store + 1] = {
  183. ["name"] = "Wähle dein Aussehen",
  184. ["description"] = "Aussehen von deiner Person"
  185. };
  186. store[#store + 1] = {
  187. ["name"] = "Eigenschaften",
  188. ["description"] = "Wähle deine Eigenschaften"
  189. };
  190. store[#store + 1] = {
  191. ["name"] = "Regeln",
  192. ["description"] = "Regeln vom Server",
  193. ["subtext"] = "Ja, ich habe alle Regeln gelesen und verstehe die volle Verantwortung meiner Handlungen."
  194. };
  195.  
  196. /*-don't touch-*/ core.config["commands"] = {};
  197. /*-don't touch-*/ local store = core.config["commands"];
  198. /*-don't touch-*/ core.config["commands_groups"] = {};
  199. /*-don't touch-*/ local groups = core.config["commands_groups"];
  200. /*---------------------------------------------------------------------------
  201. Char menu commands
  202. ---------------------------------------------------------------------------*/
  203. groups[0] = "Befehle";
  204. groups["admin"] = "Admin";
  205.  
  206. store[#store + 1] = {
  207. ["name"] = "Ändere Beschreibung",
  208. ["callback"] = function(lply)
  209. Derma_StringRequest("Ändere Beschreibung", "Gebe eine andere Charakter Beschreibung ein", LocalPlayer():getChar():GetVar("description", ""), function(text)
  210. netstream.Start("_blackberry.character_base.change_description", text);
  211. core.derma:close();
  212. end);
  213. end
  214. };
  215.  
  216. if (core.config["change_name_price"]) then
  217. store[#store + 1] = {
  218. ["name"] = "Änder dein Namen ("..core.config["change_name_price"].."€)",
  219. ["callback"] = function(lply)
  220. Derma_StringRequest("Änder dein Namen", "Gebe ein neuen Namen ein", LocalPlayer():getChar():GetVar("name", ""), function(text)
  221. netstream.Start("_blackberry.character_base.change_name", text);
  222. core.derma:close();
  223. end);
  224. end
  225. };
  226. end;
  227.  
  228. store[#store + 1] = {
  229. ["name"] = "Editiere Spieler Beschreibung",
  230. ["group"] = "admin",
  231. ["callback"] = function(lply, ply)
  232. if (!ply and !IsValid(ply)) then
  233. core.derma.openPlayerMenu(function(ply)
  234. Derma_StringRequest("Ändere Beschreibung von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neue Beschreibung ein", ply:getChar():GetVar("description"), function(text)
  235. netstream.Start("_blackberry.character_base.admin.description", {ply, text});
  236. core.derma:close();
  237. end)
  238. end);
  239. else
  240. Derma_StringRequest("Ändere Beschreibung von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neue Beschreibung ein", ply:getChar():GetVar("description"), function(text)
  241. netstream.Start("_blackberry.character_base.admin.description", {ply, text});
  242. core.derma:close();
  243. end)
  244. end;
  245. end,
  246. ["access"] = core.config["access_groups"]
  247. };
  248. store[#store + 1] = {
  249. ["name"] = "Editiere Spieler Name",
  250. ["group"] = "admin",
  251. ["callback"] = function(lply, ply)
  252. if (!ply and !IsValid(ply)) then
  253. core.derma.openPlayerMenu(function(ply)
  254. Derma_StringRequest("Ändere Name von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neuen Namen ein", ply:getChar():GetVar("name"), function(text)
  255. netstream.Start("_blackberry.character_base.admin.name", {ply, text});
  256. core.derma:close();
  257. end)
  258. end);
  259. else
  260. Derma_StringRequest("Ändere Namen von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neuen Namen ein", ply:getChar():GetVar("name"), function(text)
  261. netstream.Start("_blackberry.character_base.admin.name", {ply, text});
  262. core.derma:close();
  263. end)
  264. end;
  265. end,
  266. ["access"] = core.config["access_groups"]
  267. };
  268.  
  269. /*-don't touch-*/ core.config["rules"] = {};
  270. /*-don't touch-*/ local store = core.config["rules"];
  271. /*---------------------------------------------------------------------------
  272. Rules
  273. ---------------------------------------------------------------------------*/
  274. store[#store + 1] = "All default laws are always in effect, even without a Mayor";
  275. store[#store + 1] = "Do not commit acts of Random Death Match (RDM)";
  276. store[#store + 1] = "Do not break the New Life Rule (NLR)";
  277. store[#store + 1] = "Do not demote players randomly or for false reasons. You may not demote players while staff are online";
  278. store[#store + 1] = "Do not prop minge";
  279. store[#store + 1] = "Do not break the FearRP rules";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement