Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.01 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"] = 40; // 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"] = true; // 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"] = "Ich bin bloß ein Bot"
  59. }
  60.  
  61. /*---------------------------------------------------------------------------
  62. Models
  63. Description:
  64. 1 - If you want to use default police model by job settings, then simple write only model,
  65. 2 - If you want to use custom police model for some models, then use table, where [1] = cititzen, [2] = police model
  66. Example 1:
  67. "model/path/citizen_model1.mdl",
  68. "model/path/citizen_model2.mdl",
  69. "model/path/citizen_model3.mdl",
  70. Example 2:
  71. {"model/path/citizen_model1.mdl", "model/path/police_model1.mdl"},
  72. {"model/path/citizen_model2.mdl", "model/path/police_model2.mdl"},
  73. {"model/path/citizen_model3.mdl", "model/path/police_model3.mdl"},
  74. !!! You can use multiply variant:
  75. {"model/path/citizen_model1.mdl", "model/path/police_model1.mdl"},
  76. {"model/path/citizen_model2.mdl", "model/path/police_model2.mdl"},
  77. "model/path/citizen_model3.mdl",
  78. "model/path/citizen_model4.mdl",
  79. {"model/path/citizen_model5.mdl", "model/path/police_model5.mdl"}
  80. -- For 1, 2, and 5 id - used custom police model
  81. -- For 3 and 4 id - used model by default job settings
  82. And u can make custom model for other teams if you want; See:
  83. {
  84. "model/path/citizen_model1.mdl", // For all teams
  85. "model/path/police_model1.mdl", // For Police team
  86. [-TEAM_NAME] = "model/path/model1.mdl", // For custom team
  87. }
  88. --- !!! ATTENTION ADD - to TEAM_*** or this doesn't worked !!! ---
  89. Example: you have TEAM_GANGSTER you need add - to TEAM_GANGSTER = -TEAM_GANGSTER;
  90.  
  91. DEVS:
  92. PRIORITY 1 - job models from ["models"]
  93. PRIORITY 2 - job models from ["team_models"]
  94. PRIORITY 3 [isCP] - from DarkRP Jobs settings or default choosed model from ["models"][1] if table or ["models"];
  95. ---------------------------------------------------------------------------*/
  96. -- PRIORITY [1]
  97. core.config["models"] = { // Models for choose
  98. ["male"] = {
  99. "models/player/clanny/male_06.mdl",
  100. "models/player/eric_summer/male_06.mdl",
  101. "models/player/fin/male_02.mdl",
  102. "models/player/kenbondsummer/male_09.mdl",
  103. "models/player/peter/male_02.mdl",
  104. "models/player/peterdavid/male_06.mdl",
  105. "models/player/rhileysummer/male_06.mdl",
  106. "models/player/rosenjohnson/male_09.mdl",
  107. "models/player/yves/male_06.mdl",
  108. "models/humans/group02/tale_01.mdl",
  109. "models/humans/group02/tale_03.mdl",
  110. "models/humans/group02/tale_04.mdl",
  111. "models/humans/group02/tale_08.mdl"
  112. },
  113. ["female"] = {
  114. "models/humans/group02/temale_01.mdl",
  115. "models/humans/group02/temale_02.mdl",
  116. "models/humans/group02/temale_07.mdl"
  117. }
  118. }
  119.  
  120. /*---------------------------------------------------------------------------
  121. Example:
  122. core.config["models"] = {
  123. ["male"] = {
  124. {
  125. "male1.model",
  126. "male1_police.model",
  127. [-TEAM_GUNDEALER] = "male1_gundealer.model"
  128. }, {
  129. "male2.model",
  130. "male2_police.model",
  131. [-TEAM_GUNDEALER] = "male2_gundealer.model"
  132. }, {
  133. "male3.model",
  134. "male3_police.model",
  135. [-TEAM_GUNDEALER] = "male3_gundealer.model"
  136. },
  137. },
  138. ["female"] = {
  139. {
  140. "female1.model",
  141. "female1_police.model",
  142. [-TEAM_GUNDEALER] = "female1_gundealer.model"
  143. }, {
  144. "female2.model",
  145. "female2_police.model",
  146. [-TEAM_GUNDEALER] = "female2_gundealer.model"
  147. }, {
  148. "female3.model",
  149. "female3_police.model",
  150. [-TEAM_GUNDEALER] = "female3_gundealer.model"
  151. },
  152. }
  153. }
  154.  
  155. ---------------------------------------------------------------------------*/
  156.  
  157. -- PRIORITY [2]
  158. core.config["team_models"] = { // Custom models for jobs
  159. /*
  160. Example:
  161. [TEAM_CITIZEN] = "model.mdl",
  162. [TEAM_GANG] = {"random_model.mdl", "random_model2.mdl"} -- for random choose
  163. */
  164. }
  165.  
  166. core.config["default_appearance"] = {
  167. "Untergewichtig",
  168. "Dünn",
  169. "Stabil",
  170. "Übergewichtig"
  171. };
  172.  
  173. core.config["default_eyes_color"] = {
  174. "Blau",
  175. "Grün",
  176. "Braun",
  177. "Schwarz"
  178. };
  179.  
  180. /*-don't touch-*/ core.config["steps"] = {};
  181. /*-don't touch-*/ local store = core.config["steps"];
  182. /*---------------------------------------------------------------------------
  183. Steps names
  184. ---------------------------------------------------------------------------*/
  185. store[#store + 1] = {
  186. ["name"] = "Basisinformationen",
  187. ["description"] = "Basisinformationen zu deinem Charakter"
  188. };
  189. store[#store + 1] = {
  190. ["name"] = "Wähle dein Aussehen",
  191. ["description"] = "Aussehen von deiner Person"
  192. };
  193. store[#store + 1] = {
  194. ["name"] = "Eigenschaften",
  195. ["description"] = "Wähle deine Eigenschaften"
  196. };
  197. store[#store + 1] = {
  198. ["name"] = "Regeln",
  199. ["description"] = "Regeln vom Server",
  200. ["subtext"] = "Ja, ich habe alle Regeln gelesen und verstehe die volle Verantwortung meiner Handlungen."
  201. };
  202.  
  203. /*-don't touch-*/ core.config["commands"] = {};
  204. /*-don't touch-*/ local store = core.config["commands"];
  205. /*-don't touch-*/ core.config["commands_groups"] = {};
  206. /*-don't touch-*/ local groups = core.config["commands_groups"];
  207. /*---------------------------------------------------------------------------
  208. Char menu commands
  209. ---------------------------------------------------------------------------*/
  210. groups[0] = "Befehle";
  211. groups["admin"] = "Admin";
  212.  
  213. store[#store + 1] = {
  214. ["name"] = "Ändere Beschreibung",
  215. ["callback"] = function(lply)
  216. Derma_StringRequest("Ändere Beschreibung", "Gebe eine andere Charakter Beschreibung ein", LocalPlayer():getChar():GetVar("description", ""), function(text)
  217. netstream.Start("_blackberry.character_base.change_description", text);
  218. core.derma:close();
  219. end);
  220. end
  221. };
  222.  
  223. if (core.config["change_name_price"]) then
  224. store[#store + 1] = {
  225. ["name"] = "Änder dein Namen ("..core.config["change_name_price"].."€)",
  226. ["callback"] = function(lply)
  227. Derma_StringRequest("Änder dein Namen", "Gebe ein neuen Namen ein", LocalPlayer():getChar():GetVar("name", ""), function(text)
  228. netstream.Start("_blackberry.character_base.change_name", text);
  229. core.derma:close();
  230. end);
  231. end
  232. };
  233. end;
  234.  
  235. store[#store + 1] = {
  236. ["name"] = "Editiere Spieler Beschreibung",
  237. ["group"] = "admin",
  238. ["callback"] = function(lply, ply)
  239. if (!ply and !IsValid(ply)) then
  240. core.derma.openPlayerMenu(function(ply)
  241. Derma_StringRequest("Ändere Beschreibung von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neue Beschreibung ein", ply:getChar():GetVar("description"), function(text)
  242. netstream.Start("_blackberry.character_base.admin.description", {ply, text});
  243. core.derma:close();
  244. end)
  245. end);
  246. else
  247. Derma_StringRequest("Ändere Beschreibung von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neue Beschreibung ein", ply:getChar():GetVar("description"), function(text)
  248. netstream.Start("_blackberry.character_base.admin.description", {ply, text});
  249. core.derma:close();
  250. end)
  251. end;
  252. end,
  253. ["access"] = core.config["access_groups"]
  254. };
  255. store[#store + 1] = {
  256. ["name"] = "Editiere Spieler Name",
  257. ["group"] = "admin",
  258. ["callback"] = function(lply, ply)
  259. if (!ply and !IsValid(ply)) then
  260. core.derma.openPlayerMenu(function(ply)
  261. Derma_StringRequest("Ändere Name von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neuen Namen ein", ply:getChar():GetVar("name"), function(text)
  262. netstream.Start("_blackberry.character_base.admin.name", {ply, text});
  263. core.derma:close();
  264. end)
  265. end);
  266. else
  267. Derma_StringRequest("Ändere Namen von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neuen Namen ein", ply:getChar():GetVar("name"), function(text)
  268. netstream.Start("_blackberry.character_base.admin.name", {ply, text});
  269. core.derma:close();
  270. end)
  271. end;
  272. end,
  273. ["access"] = core.config["access_groups"]
  274. };
  275.  
  276. /*-don't touch-*/ core.config["rules"] = {};
  277. /*-don't touch-*/ local store = core.config["rules"];
  278. /*---------------------------------------------------------------------------
  279. Rules
  280. ---------------------------------------------------------------------------*/
  281. store[#store + 1] = "All default laws are always in effect, even without a Mayor";
  282. store[#store + 1] = "Do not commit acts of Random Death Match (RDM)";
  283. store[#store + 1] = "Do not break the New Life Rule (NLR)";
  284. store[#store + 1] = "Do not demote players randomly or for false reasons. You may not demote players while staff are online";
  285. store[#store + 1] = "Do not prop minge";
  286. store[#store + 1] = "Do not break the FearRP rules";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement