Advertisement
Guest User

Untitled

a guest
Sep 14th, 2022
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.86 KB | None | 0 0
  1. Config = {}
  2. Config.Locale = 'en'
  3.  
  4. --------------------------------------IMPORTANT-------------------------------------
  5. ------------------------------------------------------------------------------------
  6. -- You can give a player lock control over a job vehicle by calling the event: -----
  7. -- TriggerServerEvent('pd_lockpick:externalGiveSpare', player_id, vehicle_plate) --
  8. -- Set player_id as nil to use the source instead ----------------------------------
  9. ------------------------------------------------------------------------------------
  10.  
  11.  
  12. Config.ESX = {
  13. enabled = true,
  14. useLegacyESX = false,
  15. itemName = 'pd_lockpick',
  16. useLockpickingStore = true,
  17. }
  18.  
  19. Config.QBCore = {
  20. enabled = false,
  21. useNewQBExport = true,
  22. itemName = 'lockpick',
  23. SQLDriver = 'oxmysql',
  24. replaceQBVehicleKeys = true
  25. }
  26.  
  27. Config.lockNPCCars = {
  28. enabled = true, -- Lock NPC cars
  29. lockCarWithNpcInside = true, -- locks cars being driven by npcs
  30. lockChance = 90, -- Chance of NPC car being locked (0% - 100%)
  31. lockDoorIfOpen = false, -- If the vehicle door is open, allow the player to enter the vehicle regardless (unless its a unpickable class, defined in Config.lockpickingMinigame.unpickableClasses)
  32. lockEmergencyVehiclesForWhitelisted = true -- lock the emergency vehicles for emergency workers (recommended to keep false)
  33. }
  34.  
  35. Config.playerLockControl = {
  36. enabled = true, -- Allow players to lock and unlock their personal vehicles with a keyfob
  37. lockControlRange = 30, -- Max distance a player can toggle their car lock from (in meters)
  38.  
  39. useLockToggle = true, -- true = use 1 button, false = use 2 seperate buttons
  40. toggleKeybind = "U", -- Keybind to toggle lock on personal vehicle (if multi button is true)
  41.  
  42. -- if useLockToggle = false
  43. carUnlockKeybind = "U", -- Keybind to switch car lock (if multi button is false)
  44. carLockKeybind = "L",
  45.  
  46. --Whitelist-options
  47. whitelistedCanUnlockEmergencyVehicles = true, -- emergency workers can you the keyfob to unlock their emergency vehicles
  48. whitelistedVehicles = { -- Vehicles that emergency workers can use their keyfob on (full list of vehicles can be found at: https://wiki.rage.mp/index.php?title=Vehicles)
  49. ['police'] = {
  50. "fbi",
  51. "pbus",
  52. "police",
  53. "police2",
  54. "police3",
  55. "police4",
  56. "policeb",
  57. "polmav",
  58. "policeold1",
  59. "policeold2",
  60. "policet",
  61. "pranger",
  62. "predator",
  63. "riot",
  64. "riot2",
  65. "sheriff",
  66. "sheriff2",
  67. "fbi2"
  68. },
  69. ["ambulance"] = {
  70. "ambulance",
  71. "firetruk",
  72. "lguard",
  73. }
  74. },
  75. }
  76.  
  77. Config.spareKeys = {
  78. enabled = true, -- Allow players to give a spare key to other players to unlock their personal vehicles
  79. command = "givespare", -- Command to give another player a spare key
  80. givingRange = 5, -- Max distance a player can hand over a spare key to another player (in meters)
  81. styling = {
  82. plateColor = "orange", -- Color for the car plate in the givespare menu
  83. modelColor = "gray", -- Color for the model name in the givespare menu
  84. playerName = "orange", -- Color of the other player name in the givespare menu
  85. }
  86. }
  87.  
  88.  
  89. Config.lockpickingMinigame = {
  90. enabled = true, -- Allow players to lockpick NPC cars
  91. range = 2, -- Distance from where the lockpicking minigame gets exited out. (in meters)
  92. lockpickPlayerVehicles = {
  93. enabled = true, -- Allow players to lockpick other player's cars
  94. extraPins = 2 -- Amount of extra pins when trying to lockpick player car
  95. },
  96. whitelistedCanLockpick = true, -- Allow whitelisted jobs to lockpick cars
  97. canLockpickCarWithPedInside = true, -- Allow players to lockpick vehicles that have other peds in them
  98. canLockpickWithPedInDriverSeat = true, -- Allow players to lockpick vehicles that have npcs or other players in the driver seat
  99. pedWillFleeWhenLockpicking = true, -- Drivers will flee when you try to lockpick the car
  100. lockpickBreakChance = 20, -- Chance of breaking a lockpick on failure (0% - 100%)
  101. setAsMissionEntityAfterSuccesfullLockpick = true, -- Makes the cars not randomly despawn after successfully lockpicking them
  102.  
  103. minigameOptions = {
  104. maxPower = 12, -- Maximum of bars for the lockpicking minigame (higher number = more difficult)
  105. setBackAmount = 1, -- Amount of pins setback after failing
  106. seeded = true, -- Use the plate as the seed to generate the power required per pin. This will cause the vehicles to have the same lock combination, even between restarts.
  107. -- Setting this to false will still sync the locks between all players, but won't keep the lock the same all the time.
  108. difficultyModifier = -1, -- Scale the overal difficulty of the minigame
  109. pinsPerVehicleClass = { -- Amount of pins for each vehicle class
  110. 4, --Compacts
  111. 5, --Sedans
  112. 5, --SUVs
  113. 5, --Coupes
  114. 6, --Muscle
  115. 6, --Sports Classics
  116. 6, --Sports
  117. 9, --Super
  118. 5, --Motorcycles
  119. 4, --Off-road
  120. 5, --Industrial
  121. 5, --Utility
  122. 4, --Vans
  123. 5, --Cycles
  124. 5, --Boats
  125. 6, --Helicopters
  126. 7, --Planes
  127. 6, --Service
  128. 9, --Emergency
  129. 9, --Military
  130. 6, --Commercial
  131. 8, --Trains
  132. }
  133. },
  134.  
  135. unpickableClasses = { -- Car classes that can't be picked
  136. -- 18, --Emergency
  137. 15, --Helicopters
  138. 19, --military
  139. 16, --planes
  140. },
  141.  
  142. carAlarmChance = 30, -- Chance of setting off car alarm when lockpicking a car (0% - 100%)
  143. carAlarmDuration = 40, -- Time before car alarm shuts off (in seconds)
  144. pedsCallPolice = {
  145. enabled = true, -- If the car alarm
  146. chance = 40, -- Chance per ped that can see the vehicle alarm going of to call the police (0% - 100%)
  147. viewDistance = 20, -- Distance the ped spots you messing with the car when the alarm goes off (requires line of sight to the ped) (in meters)
  148. policeJob = "police",
  149. blipOptions = {
  150. sprite = 161,
  151. color = 6,
  152. duration = 120
  153. },
  154. }
  155. }
  156.  
  157. ---------------------------------------
  158. ----------Lockpick Store---------------
  159. ---------------------------------------
  160.  
  161. -- Location and item label ESX Only
  162. Config.lockpickingStores = {
  163. locations = {
  164. {
  165. x = -678.3285,
  166. y = -854.2575,
  167. z = 24.09087,
  168. }
  169. },
  170. items = {
  171. {
  172. item = Config.ESX.itemName,
  173. label = 'Lockpick',
  174. price = 10,
  175. },
  176. },
  177. payWithBank = true,
  178. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement