Guest User

phade-truckrobbery config

a guest
Jan 16th, 2023
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.UsePSUI = true -- True to use PS-UI thermite, false to use memorygame_2
  4. Config.MinimumCops = 1 -- the amount of on duty cops needed to start the truck robbery
  5.  
  6. Config.PoliceJobNames = {
  7. [1] = {
  8. job = 'police'
  9. },
  10. --[2] = {
  11. -- job = 'bcso' --If you have multiple police jobs, just uncomment this, and follow the same pattern,
  12. --},
  13. --[3] = {
  14. -- job = 'sasp' --If you have multiple police jobs, just uncomment this, and follow the same pattern,
  15. --},
  16. }
  17.  
  18.  
  19. --if using ps-ui
  20. Config.Time = 10 -- Time for hack to show before failing
  21. Config.Gridsize = 5 -- Grid size, only 5 - 10
  22. Config.IncorrectBlocks = 2 -- Amount of blocks you can get wrong before failing
  23. --else if using memorygame_2
  24. Config.CorrectBlocks_2 = 6 -- Amount of blocks that are correct
  25. Config.IncorrectBlocks_2 = 2 -- Amount of blocks you can get wrong before failing
  26. Config.TimeToShow_2 = 3 -- Time to show the correct answers
  27. Config.TimeToLose_2 = 10 -- Time for hack to show before failing
  28. ----------------------------
  29. Config.DirtyOrMoney = 1 -- 1 = Give dirty money / bands, 2 = Give cash instead
  30. Config.Money = math.random(15000, 25000) -- Min and Max amount of money you can recieve from the truck, or dirty / bands
  31. Config.DirtyMoneyItemName = 'dirty' --item name used for dirty if you have DirtyOrMoney set to 1
  32. Config.TruckModel = 'armoredtruck' -- stockade for default bank truck, armoredtruck if you using the one I have converted to a standalone https://github.com/phadedalive/FiveM-bobcat-truck-standalone
  33. Config.GuardPedModel = 'mp_s_m_armoured_01' --example: ig_casey
  34. Config.GuardPedWeapons = 'WEAPON_CARBINERIFLE'
  35. Config.SecondsToBlow = 10 -- seconds it takes for c4 to blow up after planting
  36. Config.BagModel = 'hei_p_m_bag_var22_arm_s' -- model of the bag you use for looting
  37. Config.GrabbingLootProgressBarText = 'Grabbing loot..' -- pretty self explanatory
  38. Config.GrabbingLootProgressBarTime = 20 -- in seconds it takes for the progressbar to complete
  39. Config.C4ItemName = 'c4' -- the item name of the c4 item needed to plant on the truck
  40. Config.RemoveC4ItemOnFail = true -- true removes the item on failure to hack, false wont remove it
  41. Config.CanRecieveCard = true -- True is yes, false is no
  42. Config.BobcatCardItem = 'bobcatkeycard' --item name for bobcat card
  43.  
  44. Config.CanGetWeapons = true -- True is yes, false is no
  45. Config.CanGetSpecialWeapons = true -- True is yes, false is no
  46.  
  47. Config.ChanceNeededForWeapon = 15 -- if chance rolls this number or higher you will recieve a random weapon
  48. Config.ChanceNeededForSpecialWeapon = 70 -- if chance rolls this number or higher you will recieve a random special weapon
  49.  
  50. Config.ChanceNeededForCard_1 = 80 -- if chance rolls this number or higher & ChanceNeededForCard_2 rolls its number or higher, you will recieve a bobcat card
  51. Config.ChanceNeededForCard_2 = 80 -- if chance rolls this number or higher & ChanceNeededForCard_1 rolls its number or higher, you will recieve a bobcat card
  52.  
  53. Config.GoldBars = true -- True = You can recieve gold bars, false = no gold bars
  54. Config.GoldBarItemName = 'goldbar'
  55. Config.GoldBarMin = 1 -- The minimum amount of gold bars you can recieve from the random pick
  56. Config.GoldBarMax = 3 -- The maximum amount of gold bars you can recieve from the random pick
  57.  
  58. Config.GoldChains = true -- True = You can recieve gold chains, false = no gold chains
  59. Config.GoldChainItemName = 'goldchain'
  60. Config.GoldChainsMin = 1 -- The minimum amount of gold chains you can recieve from the random pick
  61. Config.GoldChainsMax = 3 -- The maximum amount of gold chains you can recieve from the random pick
  62.  
  63. Config.Rolexs = true -- True = You can recieve rolexes, false = no rolexes
  64. Config.RolexItemName = 'rolex'
  65. Config.RolexMin = 1 -- The minimum amount of rolexes you can recieve from the random pick
  66. Config.RolexMax = 3 -- The maximum amount of rolexes you can recieve from the random pick
  67.  
  68.  
  69. ----IMPORTANT---- BELOW THE HOURS AND MINUTE ARE BASED OFF YOUR VPS TIME. FOR EXMAPLE I LIVE IN THE US, BUT MY VPS IS HOSTED IN GERMANY SO ITS ON GERMAN TIME
  70.  
  71. Config.LetServerHandleSpawn = false -- True = let the server spawn the truck in traffic, false = let the cron handle spawning
  72. Config.OneOrTwoSpawns = 2 -- 1 = only spawn the bobcat once per day, 2 = twice per day (I put them an hour after my resets)
  73. Config.SpawnOneHour = 11 -- The hour for the first spawn time
  74. Config.SpawnOneMin = 59 -- The minute for the first spawn time
  75. Config.SpawnTwoHour = 23 -- The hours for the second spawn time
  76. Config.SpawnTwoMin = 59 -- The minute for the second spawn time
  77.  
  78.  
  79. Config.Weapons = {
  80. [1] = {
  81. weapon = 'weapon_combatpistol'
  82. },
  83. [2] = {
  84. weapon = 'weapon_microsmg'
  85. },
  86. [3] = {
  87. weapon = 'weapon_heavypistol'
  88. },
  89. }
  90.  
  91. Config.SpecialWeapons = {
  92. [1] = {
  93. weapon = 'weapon_pumpshotgun'
  94. },
  95. [2] = {
  96. weapon = 'weapon_assaultrifle'
  97. },
  98. }
  99.  
  100. Config.Truck = { --DO NOT TOUCH
  101. [1] = {
  102. ["blown"] = false, --DO NOT TOUCH
  103. ["looted"] = false --DO NOT TOUCH
  104. }
  105. }
  106.  
  107. RegisterNetEvent('phade-truckrobbery:client:PoliceAlert', function()
  108. -- exports['ps-dispatch']:BankTruckRobbery() -- Project-SLoth
  109. -- TriggerServerEvent('police:server:policeAlert', 'Bobcat Truck Robbery') -- Regular qbcore
  110. -- These are just examples, you'll have to implement your own police alert system!
  111. end)
  112.  
Advertisement
Add Comment
Please, Sign In to add comment