Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1.  
  2. --[[
  3. No longer calls DarkRP playerArrested hook if arrester is NULL (since ULX errors if arrester is NULL), still calls RHC_jailed however
  4. ]]
  5. RHandcuffsConfig = RHandcuffsConfig or {}
  6.  
  7. --Contact me on SF for help to translate
  8. --Languages available:
  9. --[[
  10. Chinese
  11. Danish
  12. Dutch
  13. English
  14. French
  15. German
  16. Korean
  17. Norwegian
  18. Polish
  19. Russian
  20. ]]
  21. RHandcuffsConfig.LanguageToUse = "English"
  22.  
  23. RHandcuffsConfig.NPCData = {
  24. ["npc_bailer"] = {Text = "Bailer", Model = "models/Barney.mdl", TextFont = "rhc_npc_text", TextRotationSpeed = 80, TextColor = Color(255,255,255,255), TextBackgroundColor = Color(0,0,0,255)},
  25. ["npc_jailer"] = {Text = "Jailer", Model = "models/player/Group01/Female_01.mdl", TextFont = "rhc_npc_text", TextRotationSpeed = 80, TextColor = Color(255,255,255,255), TextBackgroundColor = Color(0,0,0,255)},
  26. }
  27.  
  28. //Should the cuffs jail a player instead of cuffing?
  29. RHandcuffsConfig.HandCuffsJail = false
  30. //Jailtime for using HandCuffsJail since you can't set it yourself
  31. RHandcuffsConfig.JailTime = 120
  32.  
  33. RHandcuffsConfig.CuffSound = "weapons/357/357_reload1.wav"
  34.  
  35. //Should player get unarrested if they die in jail?
  36. RHandcuffsConfig.UnArrestOnDeath = true
  37.  
  38. //The bail price for each year so -> YEARS*ThisConfig, so 10 years = 5000 in this case
  39. RHandcuffsConfig.BailPricePerYear = 500
  40. //How many years(minutes) can a player be arrested for?
  41. RHandcuffsConfig.MaxJailYears = 10
  42. //What it displays as, default is years
  43. RHandcuffsConfig.JailAmountType = "Years"
  44. //How long it takes to lockpick the cuffs
  45. RHandcuffsConfig.CuffPickTime = 15
  46. //How long it takes to cuff someone
  47. RHandcuffsConfig.CuffTime = 2
  48. //Displays if player is cuffed overhead while aiming at him
  49. RHandcuffsConfig.DisplayOverheadCuffed = false
  50. //Calculates Movement/Penalty, so 2 would make player move half as fast
  51. //Moving penalty while cuffed
  52. RHandcuffsConfig.RestrainedMovePenalty = 3
  53. //Moving penalty while dragging
  54. RHandcuffsConfig.DraggingMovePenalty = 3
  55. //Setting this to true will cause the system to bonemanipulate clientside, might cause sync issues but won't require you to install all playermodels on the server
  56. RHandcuffsConfig.BoneManipulateClientside = false
  57. //Range for cuffing
  58. RHandcuffsConfig.CuffRange = 75
  59. //Range while dragging, if player is too far away the dragging will cancel
  60. RHandcuffsConfig.DragMaxRange = 175
  61. //Maximum of velocity for dragging (raise if dragging is slow)
  62. RHandcuffsConfig.DragMaxForce = 30
  63. //Lower this to raise the velocity of dragging (lower if dragging is slow)
  64. RHandcuffsConfig.DragRangeForce = 100
  65. //Does the player has to be cuffed in order to arrest him?
  66. RHandcuffsConfig.RestrainArrest = true
  67. //Can only arrest players through the jailer NPC
  68. RHandcuffsConfig.NPCArrestOnly = true
  69. //Cuffs must be removed before you can unarrest if this is set to true
  70. RHandcuffsConfig.UnarrestMustRemoveCuffs = true
  71. //Give rewards when successfully arrested someone?
  72. RHandcuffsConfig.ArrestReward = true
  73. //Reward amount
  74. RHandcuffsConfig.ArrestRewardAmount = 250
  75. //Allow to confiscate weapons given through job?
  76. RHandcuffsConfig.AllowConfiscatingJobWeapons = true
  77. //Reward for each weapon
  78. RHandcuffsConfig.ConfiscateRewardAmount = 250
  79. //Reward for each item
  80. RHandcuffsConfig.ConfiscateItemRewardAmount = 150
  81. //Players can't press E on anything while cuffed
  82. RHandcuffsConfig.DisableUseOnRestrain = true
  83. --[[
  84. 1 = Only cuffing player can drag
  85. 2 = Only jobs in the Whitelisted jobs can drag
  86. 3 = Anyone can drag
  87. ]]
  88. RHandcuffsConfig.DraggingPermissions = 1
  89. //Key to drag a player
  90. //https://wiki.garrysmod.com/page/Enums/IN
  91. RHandcuffsConfig.KEY = IN_USE
  92.  
  93. RHandcuffsConfig.SurrenderEnabled = true
  94. //All keys can be found here -> https://wiki.garrysmod.com/page/Enums/KEY
  95. //Key for surrendering
  96. RHandcuffsConfig.SurrenderKey = KEY_T
  97. //You can't surrender while holding these weapons
  98. RHandcuffsConfig.SurrenderWeaponWhitelist = {
  99. ["weapon_arc_phone"] = true,
  100. }
  101.  
  102. //Set this to true if you wanna restrict the cuffs use to only specific jobs
  103. RHandcuffsConfig.RestrictCuffsToWhitelist = false
  104. //Should it auto grant the whitelisted job the handcuffs?
  105. RHandcuffsConfig.GrantHandCuffsWhitelisted = false
  106. //Set this to true if you wanna restrict the jailing to only specific jobs
  107. RHandcuffsConfig.RestrictJailingToWhitelist = false
  108. //Restrict bailing to specific jobs?
  109. RHandcuffsConfig.RestrictBailing = false
  110.  
  111. //On arrest configs
  112. RHandcuffsConfig.OnArrest = {
  113. SetTeam = false, --Set team to config: .ArrestTeam
  114. SetModel = false, --Set Model to config: .ArrestModel
  115. Restrain = true, --Should player be cuffed in jail?
  116. CustomFunction = function(Player) end, --Custom lua function, ran upon arrest
  117. }
  118.  
  119. //Model to set upon arrest
  120. RHandcuffsConfig.ArrestModel = {Model = "models/player/Group01/Female_01.mdl", Skin = 1}
  121.  
  122.  
  123. //The team it sets on player during jailtime if enabled
  124. RHandcuffsConfig.ArrestTeam = 1
  125. //Jobs that can use the cuffs if the cuffs is restricted
  126. RHandcuffsConfig.WhitelistedJobs = {
  127.  
  128. }
  129. //Jobs that can't be cuffed
  130. RHandcuffsConfig.ImmuneJobs = {
  131.  
  132. }
  133. //Jobs that are allowed to jail players
  134. RHandcuffsConfig.JailingJobs = {
  135.  
  136. }
  137. //Jobs that are allowed to bail out players from jail
  138. RHandcuffsConfig.BailJobs = {
  139.  
  140. }
  141.  
  142.  
  143. //Disables drawing player shadow
  144. //Only use this if the shadows are causing issues
  145. //This is a temp fix, will be fixed in the future
  146. RHandcuffsConfig.DisablePlayerShadow = false
  147.  
  148. //Disable confiscation system (both for itemstore and weapons)
  149. RHandcuffsConfig.DisableConfiscations = false
  150. //If itemstore is installed, should confiscating illegal items be enabled?
  151. RHandcuffsConfig.ItemStoreIllegalItemsEnabled = true
  152. //Items that are illegal, defined by the entity class
  153. RHandcuffsConfig.ItemStoreIllegalItems = {
  154. ["money_printer"] = true,
  155. ["weapon_ak472"] = true,
  156. }
  157. RHandcuffsConfig.BlackListedWeapons = {
  158. ["gmod_tool"] = true,
  159. ["weapon_keypadchecker"] = true,
  160. ["vc_wrench"] = true,
  161. ["vc_jerrycan"] = true,
  162. ["vc_spikestrip_wep"] = true,
  163. ["laserpointer"] = true,
  164. ["remotecontroller"] = true,
  165. ["idcard"] = true,
  166. ["pickpocket"] = true,
  167. ["keys"] = true,
  168. ["pocket"] = true,
  169. ["driving_license"] = true,
  170. ["firearms_license"] = true,
  171. ["weapon_physcannon"] = true,
  172. ["gmod_camera"] = true,
  173. ["weapon_physgun"] = true,
  174. ["weapon_r_restrained"] = true,
  175. ["tbfy_surrendered"] = true,
  176. ["weapon_r_cuffed"] = true,
  177. ["collections_bag"] = true,
  178. ["weapon_fists"] = true,
  179. ["weapon_arc_atmcard"] = true,
  180. ["itemstore_pickup"] = true,
  181. ["weapon_checker"] = true,
  182. ["driving_license_checker"] = true,
  183. ["fine_list"] = true,
  184. ["weapon_r_handcuffs"] = true,
  185. ["door_ram"] = true,
  186. ["med_kit"] = true,
  187. ["stunstick"] = true,
  188. ["arrest_stick"] = true,
  189. ["unarrest_stick"] = true,
  190. ["weaponchecker"] = true,
  191. }
  192.  
  193. //Add all female models here or the handcuffs positioning will be weird
  194. //It's case sensitive, make sure all letters are lowercase
  195. RHandcuffsConfig.FEMALE_MODELS = {
  196. "models/player/group01/female_01.mdl",
  197. "models/player/group01/female_02.mdl",
  198. "models/player/group01/female_03.mdl",
  199. "models/player/group01/female_04.mdl",
  200. "models/player/group01/female_05.mdl",
  201. "models/player/group01/female_06.mdl",
  202. "models/player/group03/female_01.mdl",
  203. "models/player/group03/female_02.mdl",
  204. "models/player/group03/female_03.mdl",
  205. "models/player/group03/female_04.mdl",
  206. "models/player/group03/female_05.mdl",
  207. "models/player/group03/female_06.mdl",
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement