marcinhuUu

m-Trucker

Jul 19th, 2022 (edited)
1,455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.Framework = 'NEW'
  4. Config.CoreName = 'qb-core'
  5. Config.QBTarget = "qb-target"
  6. Config.JobName = "trucker" -- Name of job
  7. Config.QBDrawText = "qb-drawtext"
  8. Config.QBDrawTextLabel = "[E] - Deliver" -- The text on qbdrawtext to deliver
  9. Config.BossMenu = "qb-bossmenu:client:OpenMenu" -- If you use qb-management or qb-bossmenu dont change this, is the same trigger.
  10. Config.UseMPH = false -- If true speed math will be done as MPH, if false KPH will be used (YOU HAVE TO CHANGE ON LANGUAGE TO DISPLAY THE CORRECT TEXT)
  11.  
  12. ------------------
  13. -- General Menu / Boss Menu
  14. ------------------
  15. Config["GeneralTruckMenu"] = {
  16. vector3(1209.72, -3121.44, 4.54)
  17. }
  18.  
  19. ------------------
  20. -- Deliveries
  21. ------------------
  22. Config["SmallTrip"] = { -- Small deliverie 1.0/2.0 kmh
  23. vector3(558.01, -1917.24, 24.25),
  24. vector3(374.79, -1816.48, 28.62),
  25. vector3(186.11, -1555.64, 28.7),
  26. vector3(68.23, -1428.61, 28.79),
  27. -- You can add more locations
  28. }
  29.  
  30. Config["MediumTrip"] = { -- Medium deliverie 3.0/4.0 kmh
  31. vector3(616.83, 267.24, 102.57),
  32. vector3(115.81, 317.07, 111.62),
  33. vector3(-182.61, 314.66, 97.28),
  34. vector3(-710.08, -935.0, 18.5),
  35. -- You can add more locations
  36. }
  37.  
  38. Config["LargeTrip"] = { -- Big deliverie +5.0 kmh
  39. vector3(-1879.48, 189.66, 83.48),
  40. vector3(-1808.4, 793.77, 137.99),
  41. vector3(-1498.55, 1505.98, 115.02),
  42. vector3(-406.24, 1183.44, 325.02),
  43. -- You can add more locations
  44. }
  45.  
  46. ------------------
  47. -- Level System
  48. ------------------
  49. Config.XP_Need_Small_Delivery = 0 -- Required amount of XP to be able to make a small delivery.
  50. Config.XP_Need_Medium_Delivery = 250 -- Required amount of XP to be able to make a medium delivery.
  51. Config.XP_Need_Big_Delivery = 500 -- Required amount of XP to be able to make a big delivery.
  52. -------------------------------------------------------------------------------------------------------------
  53. Config.XP_Small_Delivery = 5 -- Amount earned xp for a small delivery.
  54. Config.XP_Medium_Delivery = 10 -- Amount earned xp for a medium delivery.
  55. Config.XP_Big_Delivery = 15 -- Amount earned xp for a big delivery.
  56. -------------------------------------------------------------------------------------------------------------
  57. Config.Payment = {
  58. Type = "bank", -- "bank" or "cash"
  59. Player = {
  60. SmallDelivery = 250, -- Money the player receives after completing a Small Delivery
  61. MediumDelivery = 350, -- Money the player receives after completing a Medium Delivery
  62. BigDelivery = 450, -- Money the player receives after completing a Big Delivery
  63. },
  64. Company = {
  65. SmallDelivery = 250, -- Money the company receives after completing a Small Delivery
  66. MediumDelivery = 350, -- Money the company receives after completing a Medium Delivery
  67. BigDelivery = 450, -- Money the company receives after completing a Big Delivery
  68. }
  69. }
  70.  
  71. ---------------
  72. -- Blips
  73. ---------------
  74. Config.Blip = {
  75. Name = "Truck Driver",
  76. Sprite = 408,
  77. COlour = 60,
  78. }
  79.  
  80. Config.SmallDelivery = {
  81. Name = "Delivery",
  82. Sprite = 436,
  83. Colour = 3,
  84. RouteColour = 3,
  85. }
  86.  
  87. Config.MediumDelivery = {
  88. Name = "Delivery",
  89. Sprite = 436,
  90. Colour = 3,
  91. RouteColour = 3,
  92. }
  93.  
  94. Config.BigDelivery = {
  95. Name = "Delivery",
  96. Sprite = 436,
  97. Colour = 3,
  98. RouteColour = 3,
  99. }
  100.  
  101. ---------------
  102. -- Peds
  103. ---------------
  104. Config.PedLocation = vector3(1240.11, -3152.35, 4.53) -- Level 1 Ped
  105. Config.PedLocation2 = vector3(1239.84, -3145.7, 4.53) -- Level 2 Ped
  106. Config.PedLocation3 = vector3(1240.22, -3138.98, 4.53) -- Level 3 Ped
  107. Config.PedListTrucker = {
  108. {
  109. model = "mp_m_waremech_01",
  110. coords = Config.PedLocation,
  111. heading = 309.14,
  112. gender = "male",
  113. scenario = "CODE_HUMAN_POLICE_INVESTIGATE"
  114. },
  115. {
  116. model = "mp_m_waremech_01",
  117. coords = Config.PedLocation2,
  118. heading = 309.14,
  119. gender = "male",
  120. scenario = "CODE_HUMAN_POLICE_INVESTIGATE"
  121. },
  122. {
  123. model = "mp_m_waremech_01",
  124. coords = Config.PedLocation3,
  125. heading = 309.14,
  126. gender = "male",
  127. scenario = "CODE_HUMAN_POLICE_INVESTIGATE"
  128. },
  129. {
  130. model = "mp_m_waremech_01",
  131. coords = vector3(1209.72, -3121.44, 4.54),
  132. heading = 181.52,
  133. gender = "male",
  134. scenario = "CODE_HUMAN_MEDIC_KNEEL"
  135. },
  136. }
  137.  
  138. -------------
  139. -- Vehicleshop
  140. -------------
  141. Config.FuelSystem = "LegacyFuel"
  142. Config.VehicleKeys = "vehiclekeys:client:SetOwner" -- T
  143. Config.SpawnVehicle = vector4(1204.35, -3099.53, 5.86, 2.27)
  144. Config.PreviewVehicle = vector4(1204.35, -3099.53, 5.86, 2.27)
  145. Config.Plate = "TRUCK"..tostring(math.random(111, 999))
  146.  
  147. -- You can add more vehicles, change the price
  148. Config.Vehicles = {
  149. [1] = {
  150. ['vehiclename'] = "Hauler", --Name
  151. ['vehicle'] = "hauler", --Model
  152. ['price'] = 5000, --Price
  153. },
  154. [2] = {
  155. ['vehiclename'] = "Phantom", --Name
  156. ['vehicle'] = "phantom", --Model
  157. ['price'] = 18000, --Price
  158. },
  159. }
  160.  
  161.  
  162. -------------
  163. --- Notify
  164. ------------
  165. function Notify(msg)
  166. QBCore.Functions.Notify(msg)
  167. end
Add Comment
Please, Sign In to add comment