Advertisement
Guest User

FEJL

a guest
Oct 21st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.06 KB | None | 0 0
  1.  
  2. local cfg = {}
  3. -- define garage types with their associated vehicles
  4. -- (vehicle list: https://wiki.fivem.net/wiki/Vehicles)
  5.  
  6. -- each garage type is an associated list of veh_name/veh_definition
  7. -- they need a _config property to define the blip and the vehicle type for the garage (each vtype allow one vehicle to be spawned at a time, the default vtype is "default")
  8. -- this is used to let the player spawn a boat AND a car at the same time for example, and only despawn it in the correct garage
  9. -- _config: vtype, blipid, blipcolor, permissions (optional, only users with the permission will have access to the shop)
  10.  
  11. cfg.rent_factor = 0.1 -- 10% of the original price if a rent
  12. cfg.sell_factor = 0.75 -- sell for 75% of the original price
  13. --this is the limit amount that you can put when you are trying to sell your personall vehicle to another player
  14. cfg.limit = 100000000
  15.  
  16.  
  17. cfg.garage_types = {
  18. ["Fisker")] = {
  19. _config = {vtype="boat",blipid=427,blipcolor=28,permissions={"fisher.vehicle"}},
  20. ["suntrap"] = {"Fisker Båd",0, "Your favorite boat!"}
  21. },
  22. ["Politi"] = {
  23. _config = {vtype="car",blipid=56,blipcolor=38,permissions={"police.vehicle"}},
  24. ["police02"] = {"VW Arteon [MARKERET]",0, "Politi"},
  25. ["police04"] = {"BMW [CIVIL]",0, "Politi"},
  26. ["police05"] = {"Ford Mondeo [HUNDE PATRULJE]",0, "Politi"},
  27. ["police06"] = {"Audi RS6 [CIVIL]",0, "Politi"},
  28. ["police07"] = {"Audi RS6 [MARKERET]",0, "Politi"},
  29. ["police08"] = {"Mercedes V250 [CIVIL]",0, "Politi"},
  30. ["police09"] = {"Ford Explorer [MARKERET]",0, "Politi"},
  31. ["police10"] = {"Indsatsleder Vogn [MARKERET]",0, "Politi"},
  32. ["police11"] = {"AKS [MARKERET]",0, "Politi"},
  33. ["police12"] = {"Audi Q7 [CIVIL]",0, "Politi"},
  34. ["psp_bmwgs"] = {"OffRoad Motorcykel [MARKERET]",0, "Politi"},
  35. ["policebvn"] = {"Politi Motorcykel [MARKERET]",0, "Politi"}
  36. },
  37. ["Ambulance"] = {
  38. _config = {vtype="car",blipid=50,blipcolor=3,permissions={"emergency.vehicle"}},
  39. ["Ambulance"] = {"Ambulance1",0, "Ambulance"},
  40. ["ambu01"] = {"Audi Læge Bil",0, "Ambulance"},
  41. ["ambu02"] = {"Ambulance2",0, "Ambulance"},
  42. ["ambu03"] = {"Ambulance3",0, "Ambulance"},
  43. ["ambu04"] = {"Ambulance4",0, "Ambulance"},
  44. ["aw139"] = {"Ambulance5",0, "Ambulance"}
  45. },
  46. ["PolitiHeli"] = {
  47. _config = {vtype="car",blipid=43,blipcolor=38,radius=5.1,permissions={"police.vehicle"}},
  48. ["polmav"] = {"Politi Helikopter",0, "Ambulance"}
  49. },
  50. ["EMSHeli"] = {
  51. _config = {vtype="car",blipid=43,blipcolor=1,radius=5.1,permissions={"emergency.vehicle"}},
  52. ["supervolito2"] = {"Helikopter",0, "Ambulance"}
  53. },
  54. ["Pilot"] = {
  55. _config = {vtype="plane",blipid=16,blipcolor=30,permissions={"pilot.vehicle"}},
  56. ["mammatus"] = {"Small Cargo",0, "mammatus"},
  57. ["vestra"] = {"Plane",0, "vestra"},
  58. ["jet"] = {"Boeing 747",0, "jet"},
  59. ["volatus"] = {"Helicopter",0, "volatus"}
  60. },
  61. ["Taxa"] = {
  62. _config = {vtype="car",blipid=50,blipcolor=81,permissions={"uber.vehicle"}},
  63. ["taxi"] = {"Taxa",0, "taxa"}
  64. },
  65. ["GLS"] = {
  66. _config = {vtype="car",blipid=85,blipcolor=81,permissions={"gls.vehicle"}},
  67. ["speedo"] = {"GLS Bil",0, "speedo"}
  68. },
  69. ["Advokat"] = {
  70. _config = {vtype="car",blipid=50,blipcolor=7,permissions={"advokat.vehicle"}},
  71. ["sentinel"] = {"Advokat Køretøj", 0, "sentinel"}
  72. },
  73. ["Aflevering"] = {
  74. _config = {vtype="bike",blipid=85,blipcolor=31,permissions={"delivery.vehicle"}},
  75. ["faggio3"] = {"faggio3",0, "faggio3"}
  76. },
  77. ["Mekaniker"] = {
  78. _config = {vtype="car",blipid=50,blipcolor=31,permissions={"mekaniker.vehicle"}},
  79. ["towtruck2"] = {"Towtruck",0, "towtruck2"},
  80. ["utillitruck3"] = {"Utility Truck",0, "utillitruck3"}
  81. },
  82. ["Bank"] = {
  83. _config = {vtype="car",blipid=67,blipcolor=4,permissions={"bankdriver.vehicle"}},
  84. ["stockade"] = {"stockade",0, "stockade"}
  85. },
  86. ["Skraldemand"] = {
  87. _config = {vtype="car",blipid=67,blipcolor=4,permissions={"trash.vehicle"}},
  88. ["trash"] = {"Truck",0, "trash"}
  89. },
  90. ["Medicinske Stoffer Chauffør"] = {
  91. _config = {vtype="car",blipid=67,blipcolor=4,permissions={"medical.vehicle"}},
  92. ["pony2"] = {"Medicinske Stoffer Bil",0, "pony2"}
  93. }
  94. }
  95.  
  96. -- {garage_type,x,y,z}
  97. cfg.garages = {
  98. {"Politi",477.99038696289,-1020.9154663086,28.011201858521},
  99. {"Politi",1868.5435791016,3696.0295410156,33.5693359375}, -- sandy shores
  100. {"Politi",-476.92425537109,6026.9951171875,31.340547561646}, -- paleto
  101. {"Ambulance",358.91650390625, -607.78515625, 28.6820983886719}, -- main
  102. {"Ambulance",1833.3223876953,3661.3088378906,33.875843048096}, -- sandy shores
  103. {"Ambulance",-255.98040771484,6346.1127929688,32.426189422607}, -- paleto
  104. {"Taxa",907.38049316406,-175.86546325684,74.130157470703}, -- jobs garage
  105. {"Advokat",-1900.7344970703,-560.89245605469,11.802397727966},-- jobs garage
  106. {"Aflevering",964.514770507813,-1020.13879394531,40.8475074768066}, -- jobs garage
  107. {"Mekaniker",401.42602539063,-1631.7053222656,29.291942596436}, -- jobs garage
  108. {"Bank",222.68756103516,222.95631408691,105.41331481934}, -- jobs garage
  109. {"GLS",69.852645874023,117.0472946167,79.126907348633},
  110. {"PolitiHeli",449.30340576172,-981.24963378906,43.69165802002}, -- Main PD
  111. {"PolitiHeli",1770.2171630859,3239.5561523438,42.13171005249}, -- Sandy Shores
  112. {"PolitiHeli",-475.24264526367,5988.7353515625,31.336685180664}, -- Paleto Bay
  113. {"EMSHeli",449.30340576172,-981.24963378906,43.69165802002}, -- Main PD
  114. {"EMSHeli",1770.2171630859,3239.5561523438,42.13171005249}, -- Sandy Shores
  115. {"EMSHeli",-475.24264526367,5988.7353515625,31.336685180664}, -- Paleto Bay
  116. {"Fisker",1508.8854980469,3908.5732421875,30.031631469727},
  117. {"Medicinske Stoffer Chauffør",-319.82263183594,-942.8408203125,31.080617904663},
  118. {"Pilot",-901.70129394531,-3293.984375,13.944430351257},
  119. {"Pilot",2128.9069824219,4806.134765625,41.168750762939},
  120. {"Pilot",1734.9053955078,3297.9689941406,41.223503112793},
  121. {"Pilot",-745.14343261719,-1468.5361328125,5.0005240440369},
  122. {"Skraldemand",768.86297607422,-1410.4896240234,26.502605438232}
  123. }
  124.  
  125. return cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement