Advertisement
Guest User

Untitled

a guest
Oct 20th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.22 KB | None | 0 0
  1. -- An FYI before hand, these things -- comment out the code. So if you see code in --, it means that will be ignored.
  2.  
  3. --[[-------------------------------------------------------------------------
  4. -- Advanced Script Options --
  5. ---------------------------------------------------------------------------]]
  6.    
  7.     -- This option (if set to true) will delete data files in the charges after a certain amount of time that have not been touched.
  8.     -- For those who don't know what this does, a .txt file gets saved for ever person that joins the server in your server data folder.
  9.     -- This will delete those .txt files after a certain amount of time. Otherwise you can turn this off but sooner or later those files will start to pile up.
  10.     -- I would keep this on to keep your server optimized. (This doesn't delete all the files, just the ones that go over the specified amount of time.)
  11.     -- *IMPORTENT* This doesn't delete files that are used. (This only deletes the files of people who don't log into your server after a certain amount of time.)
  12.     DeleteDaFiles = true
  13.  
  14.     -- How long should the files be saved for? (After the time you put down, if that person which the file is assgined to does not log on, it will be delete.)
  15.     -- Default is one week. (Put the time in minutes.)
  16.     -- 1 Day: 1440 Minutes
  17.     -- 1 Week: 10080 Minutes
  18.     -- 1 Month: 43800 Minues
  19.     TimeFileDeleteDelay = 10080
  20.  
  21. --[[-------------------------------------------------------------------------
  22. -- Advanced Script Options --
  23. ---------------------------------------------------------------------------]]
  24.  
  25. --------------------------------------------------------------------------------------------------------------------------------------------
  26. --------------------------------------------------------------------------------------------------------------------------------------------
  27.  
  28.  
  29. --[[-------------------------------------------------------------------------
  30. -- General Config --
  31. ---------------------------------------------------------------------------]]
  32.  
  33.     -- Police Jobs
  34.     -- What jobs are allowed to access the police menu?
  35.     AllowedJobsPoliceMenu = {
  36.  
  37.     TEAM_MAYOR,
  38.     TEAM_POLICE
  39.  
  40.     }
  41.  
  42. --[[-------------------------------------------------------------------------
  43. -- General Config --
  44. ---------------------------------------------------------------------------]]
  45.  
  46.  
  47. --------------------------------------------------------------------------------------------------------------------------------------------
  48. --------------------------------------------------------------------------------------------------------------------------------------------
  49.  
  50.  
  51. --[[-------------------------------------------------------------------------
  52. -- Enable/Disable Charges --
  53. ---------------------------------------------------------------------------]]
  54.  
  55.     --Set to false to disable people being charged with that crime. Keep it true to keep it on.
  56.  
  57.     --Murder Charge (Set to false to disable)
  58.     MurderEnable = true
  59.  
  60.     --Burglary Charge (Set to false to disable)
  61.     BurglaryEnable = true
  62.  
  63.     --CarJacking Charge (Set to false to disable)
  64.     CarJackingEnable = true
  65.  
  66.     --HitNRun Charge (Set to false to disable)
  67.     HitRunEnable = true
  68.  
  69.     --Terrorism Charge (Set to false to disable)
  70.     TerrorismEnable = true
  71.  
  72.     --Mugging Charge (Set to false to disable)
  73.     MuggingEnable = true
  74.  
  75.     --Contraband Charge (Set to false to disable)
  76.     ContrabandEnable = true
  77.  
  78.     --IllegalWep Charge (Set to false to disable)
  79.     IllegalWepEnable = true
  80.  
  81. --[[-------------------------------------------------------------------------
  82. -- Enable/Disable Charges --
  83. ---------------------------------------------------------------------------]]
  84.  
  85.  
  86. --------------------------------------------------------------------------------------------------------------------------------------------
  87. --------------------------------------------------------------------------------------------------------------------------------------------
  88.  
  89.  
  90. --[[-------------------------------------------------------------------------
  91. -- MURDER CHARGE CONFIG --
  92. ---------------------------------------------------------------------------]]
  93.  
  94.     --Hit n' Run Add Murder
  95.     --If set to true then someone who kills someone else with their car will get a Hit n' Run charge along with a Murder charge.
  96.     --If set to false then someone who kills someone else with their car will get only a Hit n' Run charge.
  97.     HitRunMurder = true
  98.  
  99.     -- Murder Charge Job Ignore
  100.     -- Put whatever teams you want in here to be ignored by the script when it adds the murder charge
  101.     -- EX. If you put "TEAM_POLICE", then if anyone on that team kills someone, they will not have a Murder charge added
  102.     MurderTable_1 = {
  103.  
  104.         TEAM_POLICE,
  105.         TEAM_MAYOR -- Make sure the last team you put in here doesn't have a comma at the end.
  106.  
  107.     }
  108.  
  109. --[[-------------------------------------------------------------------------
  110. -- MURDER CHARGE CONFIG --
  111. ---------------------------------------------------------------------------]]
  112.  
  113.  
  114. --------------------------------------------------------------------------------------------------------------------------------------------
  115. --------------------------------------------------------------------------------------------------------------------------------------------
  116.  
  117.  
  118. --[[-------------------------------------------------------------------------
  119. -- BURGLARY CHARGE CONFIG --
  120. ---------------------------------------------------------------------------]]
  121.  
  122.     --LockPicks
  123.     --Right click on the weapon icon and click copy to clipboard, then paste it in here following the format.
  124.     --You need to do this for all your lockpicks, the default lockpick is already included
  125.     LockPickTable = {
  126.  
  127.         "lockpick",
  128.         "pro_lockpick"
  129.     }
  130.  
  131.     --DelayTime
  132.     --Set (in seconds) the time for how long you want the charge to delay before charging again
  133.     --Ex. If set to 180 that means every time the person lock picks a house they will be charged with burglary.
  134.     --Then in the 3 minute span, anything they lockpick will be ignored and not added to the charge
  135.     DelayBurglaryTime = 180
  136.  
  137.     -- Burglary Charge Job Ignore
  138.     -- Put whatever teams you want in here to be ignored by the script when it adds the Burglary charge
  139.     -- EX. If you put "TEAM_POLICE", then if anyone on that lock picks a door, they will not have a Burglary charge added
  140.     BruglaryTable_1 = {
  141.  
  142.         TEAM_MAYOR,
  143.         TEAM_POLICE
  144.  
  145.     }
  146.  
  147. --[[-------------------------------------------------------------------------
  148. -- BURGLARY CHARGE CONFIG --
  149. ---------------------------------------------------------------------------]]
  150.  
  151.  
  152. --------------------------------------------------------------------------------------------------------------------------------------------
  153. --------------------------------------------------------------------------------------------------------------------------------------------
  154.  
  155.  
  156. --[[-------------------------------------------------------------------------
  157. -- CARJACKING CHARGE CONFIG --
  158. ---------------------------------------------------------------------------]]
  159.  
  160.     -- Car Jacking Charge Job Ignore
  161.     -- Put whatever teams you want in here to be ignored by the script when it adds the CarJack charge
  162.     -- EX. If you put "TEAM_POLICE", then if anyone on that team steals a car, they will not have a CarJack charge added
  163.     -- It is empty by default, uncomment or just add jobs for it to enable.
  164.     CarJackTable_1 = {
  165.        
  166.         --TEAM_POLICE,
  167.         --TEAM_MAYOR
  168.     }
  169.  
  170. --[[-------------------------------------------------------------------------
  171. -- CARJACKING CHARGE CONFIG --
  172. ---------------------------------------------------------------------------]]
  173.  
  174.  
  175. --------------------------------------------------------------------------------------------------------------------------------------------
  176. --------------------------------------------------------------------------------------------------------------------------------------------
  177.  
  178.  
  179. --[[-------------------------------------------------------------------------
  180. -- HIT N RUN CHARGE CONFIG --
  181. ---------------------------------------------------------------------------]]
  182.  
  183.  
  184.     -- Jobs to be ignored when the script runs
  185.     -- EX. TEAM_POLICE will not have a Hit N Run charge added when they kill someone with their car
  186.     HitRunTable_1 = {
  187.  
  188.         TEAM_POLICE,
  189.         TEAM_MAYOR
  190.  
  191.     }
  192.  
  193. --[[-------------------------------------------------------------------------
  194. -- HIT N RUN CHARGE CONFIG --
  195. ---------------------------------------------------------------------------]]
  196.  
  197.  
  198. --------------------------------------------------------------------------------------------------------------------------------------------
  199. --------------------------------------------------------------------------------------------------------------------------------------------
  200.  
  201.  
  202. --[[-------------------------------------------------------------------------
  203. -- TERRORISM CHARGE CONFIG --
  204. ---------------------------------------------------------------------------]]
  205.  
  206.     -- Put the weapons in qoutation marks to add what weapons it triggers on
  207.     -- EX. Putting "weapon_slam" will make it that everytime someone places down a slam it will add a charge to them (providing the pass the job check)
  208.     -- To get the weapon name go to the q meun, right click the weapon in the weapons tab and click "Copy to clipboard"
  209.     TerrorismWeapons = {
  210.  
  211.         --"weapon_c4", -- This is not an actual weapon, this is just to show were to put commas.
  212.         "weapon_slam"
  213.  
  214.     }
  215.  
  216.     -- If you set this to true then any jobs in the TerrorismJobTable_1 who plant bombs will have a charge applied to them
  217.     -- If you set this to false then any jobs in the TerrorismJobTable_1 will be ignored whe they plant a bomb
  218.     TerrorJobCheck = false
  219.  
  220.     --Jobs to be checked or ignored based on what you set TerrorJobCheck to
  221.     TerrorismJobTable_1 = {
  222.  
  223.         TEAM_POLICE,
  224.         TEAM_MAYOR
  225.         --If TerrorJobCheck set to true it would look like this
  226.         --TEAM_TERRORIST,
  227.         --TEAM_TERRORISTLEADER
  228.  
  229.     }
  230.  
  231. --[[-------------------------------------------------------------------------
  232. -- TERRORISM CHARGE CONFIG --
  233. ---------------------------------------------------------------------------]]
  234.  
  235.  
  236. --------------------------------------------------------------------------------------------------------------------------------------------
  237. --------------------------------------------------------------------------------------------------------------------------------------------
  238.  
  239.  
  240. --[[-------------------------------------------------------------------------
  241. -- MUGGING CHARGE CONFIG --
  242. ---------------------------------------------------------------------------]]
  243.  
  244.     --How long should it wait before someone can mug again? (In Seconds) (Default is 180 (3 minutes))
  245.     MugDelaying = 180
  246.  
  247.     --How much should the mugger be able to ask for maximum?
  248.     --Ex. 5000 means the mugger cannot ask for more than $5000
  249.     MaxMugging = 5000
  250.  
  251.     --Which jobs shouldn't be allowed to mug people?
  252.     MuggerJobTable_1 = {
  253.  
  254.         TEAM_POLICE,
  255.         TEAM_MAYOR
  256.     }
  257.  
  258.     -- More Info: To mug, you must type in "!mug number"
  259.     -- For example: "!mug 1000" or "!mug 2000"
  260.     -- Mugging cannot be below 10$ and cannot be above your max that you set.
  261.  
  262. --[[-------------------------------------------------------------------------
  263. -- MUGGING CHARGE CONFIG --
  264. ---------------------------------------------------------------------------]]
  265.  
  266.  
  267. --------------------------------------------------------------------------------------------------------------------------------------------
  268. --------------------------------------------------------------------------------------------------------------------------------------------
  269.  
  270.  
  271. --[[-------------------------------------------------------------------------
  272. -- CONTRABAND CHARGE CONFIG --
  273. ---------------------------------------------------------------------------]]
  274.  
  275.     --Jobs to be ignored
  276.     --Ex. Whenever TEAM_POLICE buys contraband or picks it up, they will not have a charge added.
  277.     ContrabandJob_1 = {
  278.  
  279.         TEAM_POLICE,
  280.         TEAM_MAYOR
  281.  
  282.     }
  283.  
  284.     --Which Entities should be contraband?
  285.     ---------------------------------------- Note: This doesn't work with Vehicles or Shipments
  286.     --If you don't know how to get the entity name, I made a function for the group "superadmin".
  287.     --Look at the entity and type in "!!GetEnt" without the "". Type it exactly. Now the name should print to your chat.
  288.     --Take that name and go ahead and toss it in the table below in "".
  289.     ----------------------------------------
  290.     --Quick note: The way this works is if a player buys or picks any of these entities up with their gravity gun.
  291.  
  292.         --"printer_white",
  293.         --"ent_c4", -- This is lets say someone plants a c4 and someone else picks it up. ent_c4 is what they would be picking up
  294.         --"shipment_m9k_spas12", -- I don't know the actually entity name but spawn a shipment and look above
  295.         --"weapon_m9k_spas12" -- Again don't know the actual entity name, it's just to give you an idea.
  296.    
  297.     -- This table (table is something that holds more than one value) is meant to only hold shipment names that are contraband.
  298.     -- The name of the shipment should be put in here. To get the name it is what you type in right after 'DarkRP.createShipment("M4", {'
  299.     -- So 'M4' would be what you put in to the table. I will put in the name of all the rifles that are default in DarkRP as an example.
  300.     -- You can also get the name by typing in "!!GetEnt" while looking at the shipment and it will print to your chat.
  301.     -- More Info: How this works is that once, let's say player A, player A picks this up, player A will get a charge added.
  302.     -- He will not get another charge however for picking up the same shipment. (same shipment means that one unique shipment, it does not mean all shipments with the same gun.)
  303.     -- This will also give a charge to those who buy it.
  304.     ContrabandShip_1 = {
  305.  
  306.     "AK47",
  307.     "MP5",
  308.     "Mac 10",
  309.     "Pump shotgun",
  310.     "M4",
  311.     "Sniper rifle"
  312.  
  313.     }
  314.  
  315.     -- This table is for the actual guns. Again look at the gun and just type in '!!GetEnt' to get the name.
  316.     -- Then toss the name in here. I will be putting the default DarkRP guns.
  317.     -- This will also give a charge to those who buy it.
  318.  
  319.     ContrabandWep_1 = {
  320.  
  321.     "weapon_p2282",
  322.     "weapon_fiveseven2",
  323.     "weapon_glock2",
  324.     "weapon_deagle2"
  325.  
  326.     }
  327.  
  328.     -- If you want to add more things to contraband then put them here. (Anything that isn't a Weapon or Shipment)
  329.     -- There is no garuntee they will work but they most likely will. If they don't then feel free to leave a comment on my profile.
  330.     -- I don't have any other ents so I will be putting in examples from the drug mod which can be found here
  331.     -- https://steamcommunity.com/sharedfiles/filedetails/?id=696374067
  332.     -- These are commeneted out so you would have to remvoe the "--" to make them work.
  333.     -- I did however include the money printer.
  334.  
  335.     ContrabandXtra_1 = {
  336.  
  337.     --"durgz_aspirin",
  338.     --"durgz_alcohol",
  339.     --"durgz_cigarette",
  340.     --"durgz_lsd",
  341.     --"durgz_heroine",
  342.     --"durgz_cocaine",
  343.     --"durgz_weed",
  344.     --"durgz_meth",
  345.     --"durgz_mushroom",
  346.     --"durgz_pcp",
  347.     "money_printer",
  348.     "drug_lab",
  349.     "gunlab"
  350.  
  351.     }
  352.  
  353.     --Should this have DarkRp functions (Checking if they buy from the F4 menu, weapon shipments, printers etc.)
  354.     --*ONLY WORKS WITH DARKRP*
  355.     --Set to true to have DarkRp functions, set to false to disable it.
  356.     ContrabandDarkRp = true
  357.  
  358. --[[-------------------------------------------------------------------------
  359. -- CONTRABAND CHARGE CONFIG --
  360. ---------------------------------------------------------------------------]]
  361.  
  362. --------------------------------------------------------------------------------------------------------------------------------------------
  363. --------------------------------------------------------------------------------------------------------------------------------------------
  364.  
  365. --[[-------------------------------------------------------------------------
  366. -- ILLEGAL WEAPON CHARGE CONFIG --
  367. ---------------------------------------------------------------------------]]
  368.  
  369.     -- What jobs should be ignored by the charge?
  370.     --(People that have the job stated below will not get a charge with that crime.)
  371.     IllegalWepJob_1 = {
  372.  
  373.     TEAM_MAYOR,
  374.     TEAM_POLICE
  375.    
  376.     }
  377.  
  378.     -- What weapons should be illegal?
  379.     -- (The way this script works is that whenever a player takes out a weapons listed below,
  380.     --  then that player will get a charge added. It does not add a charge if they just have it on them.)
  381.     -- (Also, until that player dies, they will not be charged with taking out that same weapon again
  382.     --  unless they drop and pick it up again. (That will be an option for you.))
  383.     -- To get the name of a weapon, go into your Q menu and go to the weapons tab. Find the weapon, right click on the icon and click copy to clipboard. Paste it below.
  384.     IllegalWeapons_1 = {
  385.  
  386.     "weapon_deagle2",
  387.     "weapon_rpg",
  388.     "weapon_glock2",
  389.     "weapon_slam"
  390.  
  391.     }
  392.  
  393.     --*IMPORTENT*--
  394.     --*READ THIS BELOW*--
  395.     -- So I have devised two ways on how people can be charged with having an illegal weapon. I didn't know which one to choose so I made both and will let you choose.
  396.     -- So setting the below option to true will give you option 1, setting it to false will give you option 2.
  397.     -- Option 1(true), Option 2(false) <--- This is not how you put it in, this is just to show which option you will get based on wether you put true or false.
  398.     -- Option 1: The person will get an illegal weapons charge everytime he picks an illegal weapon. That's it.
  399.     -- Option 2: Option 2 is a bit more advanced. In this option,
  400.     -- everytime a player unholsters an illegal weapon (takes it out, lets say he had his gravity gun out, then he took out an AK. That would trigger the script)
  401.     -- that player will then get an illegal weapons charge. He will not get another charge for taking out that same weapon unless he gets sent to jail or dies.
  402.     -- By default I will set this to option 2 because I like it better. Remember, setting it to true will be picking option 1.
  403.     ChoiceIWep = false
  404.  
  405.  
  406.     -- *This is only for option 2, if you have option 1 from above, don't bother reading this.*--
  407.     -- If this is set to true then DarkRP functions will be enabled in the script.
  408.     -- For example: People, when sent to jail, will have weapons that they have prevousily took out will be cleared.
  409.     -- EX. Player 1 takes out an AK and gets an illegal weapons charge. He now will not get another charge for taking out the AK again unless he goes to jail (or dies).
  410.     -- Then when he does it again, he will get another charge. Since jail is a DarkRp thing, IWepDarkRp will have to be true for it to work.
  411.     IWepDarkRp = true
  412.  
  413. --[[-------------------------------------------------------------------------
  414. -- ILLEGAL WEAPON CHARGE CONFIG --
  415. ---------------------------------------------------------------------------]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement