Advertisement
Guest User

CONFIG

a guest
Aug 20th, 2022
605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.87 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.Debug = false
  4. --SERVER SETTINGS
  5. Config.Framework = "ESX" -- Set your framework! qbcore, ESX, standalone
  6. Config.Target = "qtarget" -- Which Target system do u use? qb-target, qtarget
  7. Config.NotificationType = "ox_lib" -- ESX, ox_lib, qbcore
  8. Config.MechanicJobs = { 'bennys', 'mechanic' }
  9. --PLAYER CONTROL
  10. Config.Logs = { enabled = true, type = "webhook" } -- use webhook or ox_lib (datadog) Can be changed in server > sv_utils.lua
  11. Config.DropPlayer = true -- Drop (Kick) Player if tries to cheat!
  12. Config.AnticheatBan = false -- Change in server/sv_Utils.lua!!! WIll not work by default you need to add your custom trigger to ban player!
  13. Config.EnableWash = true
  14. Config.DutyEnabled = true
  15. Config.SocietyMoney = true
  16.  
  17. --BLIPS
  18. Config.Blips = {
  19.     MechanicShop = { -- do not use same value twice (will result in overwriting of blip)
  20.         BlipCoords = vec3(472.07, -1282.81, 29.55), -- Blip coords
  21.         Sprite = 446, -- Blip Icon
  22.         Display = 4, -- keep 4
  23.         Scale = 0.8, -- Size of blip
  24.         Colour = 4, -- colour
  25.         Name = "Mechanic Shop" -- Blip name
  26.     },
  27. }
  28.  
  29. Config.Towing = {
  30.     Enabled = true,
  31.     TowingCars = {
  32.         { model = "flatbed", offset = vec3(0.0, -0.85, 1.05), distance = 10 },
  33.     }
  34. }
  35.  
  36. Config.CarWash = {
  37.     Enabled = true,
  38.     Price = 500,
  39.     Stations = {
  40.         { coords = vec3(28.45, -1391.94, 28.96) },
  41.         { coords = vec3(-700.07, -938.94, 18.64) },
  42.         { coords = vec3(170.78, -1718.25, 29.3) },
  43.     },
  44. }
  45.  
  46. --Mechanicshop
  47. Config.MechanicShop = {
  48.     Enabled = true,
  49.     Header = "Mechanic Shop",
  50.     Items = {
  51.         { label = 'Cloth', item = 'cloth', description = "Buy Cloth for: $", price = 50, MinAmount = 1, MaxAmount = 10 },
  52.         { label = 'Sponge', item = 'sponge', description = "Buy Sponge for: $", price = 40, MinAmount = 1,
  53.             MaxAmount = 10 },
  54.         { label = 'Lockpick', item = 'lockpick', description = "Buy Lockpick for: $", price = 299, MinAmount = 1,
  55.             MaxAmount = 10 },
  56.         { label = 'Repair Kit', item = 'repairkit', description = "Buy Repair Kit for: $", price = 100, MinAmount = 1,
  57.             MaxAmount = 10 },
  58.         { label = 'Car Wax', item = 'carwax', description = "Buy Car Wax for: $", price = 100, MinAmount = 1,
  59.             MaxAmount = 10 },
  60.     },
  61.     Ped = {
  62.         { model = "s_m_m_gardener_01", coords = vec4(471.48, -1282.73, 29.55 - 1.0, 276.36),
  63.             scenario = "WORLD_HUMAN_SMOKING" },
  64.     },
  65. }
  66.  
  67. Config.Garages = {
  68.     bennys = {
  69.         job = 'mechanic',
  70.         PolyZone = {
  71.             name = 'bennys',
  72.             Coords = vec3(-205.08, -1321.6, 30.89),
  73.             debugPoly = false,
  74.             useZ = true,
  75.             radius = 35,
  76.         },
  77.         Actions = {
  78.             Clean = { enabled = true, Title = "Wash Car with sponge", Description = "Requirements: 1x Sponge",
  79.                 price = 500 },
  80.             Repair = { enabled = true, Title = "Repair Car", Description = "Requirements: 1x Repair kit", price = 500 },
  81.             LockPick = { enabled = true, Title = "Lock Pick Car", Description = "Requirements: 1x Lock Pick" },
  82.             CarWax = { enabled = true, Title = "Polish the car with Car Wax",
  83.                 Description = "Requirements: 1x Car Wax, 1x Cloth", price = 500 },
  84.         },
  85.         Ped = {
  86.             Model = "s_m_y_xmech_01", Coords = vec4(-202.9, -1308.99, 31.29 - 1.0, 15.37),
  87.             Occupied = false, Scenario = "WORLD_HUMAN_SMOKING"
  88.         },
  89.         Wash = {
  90.             Coords = vec3(-197.71, -1321.04, 31.29),
  91.             Radius = 0.4,
  92.             debugPoly = false,
  93.         },
  94.         WashActions = {
  95.             WashSponge = { enabled = true, Title = "Wash sponge", Description = "Requirements: 1x Dirty Sponge" },
  96.             WashCloth = { enabled = true, Title = "Wash Cloth", Description = "Requirements: 1x Dirty Cloth" },
  97.         },
  98.         Duty = {
  99.             Coords = vec3(-206.39, -1341.69, 35.0),
  100.             Radius = 0.4,
  101.             debugPoly = false,
  102.         },
  103.         Garage = {
  104.             Ped = {
  105.                 Model = "s_m_y_xmech_01", Coords = vec4(-212.97, -1309.39, 31.29 - 1.0, 351.55),
  106.                 Occupied = false, Scenario = "WORLD_HUMAN_SMOKING"
  107.             },
  108.             Vehicles = {
  109.                 { Model = "flatbed", Label = "Flatbed" },
  110.             },
  111.             SpawnPoints = {
  112.                 { Coords = vector3(-211.31, -1304.4, 31.29), Heading = 277.09, Radius = 3.0 },
  113.                 { Coords = vector3(-189.68, -1301.93, 31.3), Heading = 98.28, Radius = 3.0 }
  114.             },
  115.         },
  116.     },
  117.     mechanic = {
  118.         job = 'mechanic',
  119.         PolyZone = {
  120.             name = 'mechanic',
  121.             Coords = vec3(-330.93, -137.21, 39.01),
  122.             debugPoly = false,
  123.             useZ = true,
  124.             radius = 34,
  125.         },
  126.         Actions = {
  127.             Clean = { enabled = true, Title = "Wash Car with sponge", Description = "Requirements: 1x Sponge",
  128.                 price = 500 },
  129.             Repair = { enabled = true, Title = "Repair Car", Description = "Requirements: 1x Repair kit", price = 500 },
  130.             LockPick = { enabled = true, Title = "Lock Pick Car", Description = "Requirements: 1x Lock Pick" },
  131.             CarWax = { enabled = true, Title = "Polish the car with Car Wax",
  132.                 Description = "Requirements: 1x Car Wax, 1x Cloth", price = 500 },
  133.         },
  134.         Ped = {
  135.             Model = "s_m_y_xmech_01", Coords = vec4(-347.41, -133.4, 39.01 - 1.0, 247.8),
  136.             Occupied = false, Scenario = "WORLD_HUMAN_SMOKING"
  137.         },
  138.         Wash = {
  139.             Coords = vec3(-337.3, -143.61, 38.75),
  140.             Radius = 0.4,
  141.             debugPoly = false,
  142.         },
  143.         WashActions = {
  144.             WashSponge = { enabled = true, Title = "Wash sponge", Description = "Requirements: 1x Dirty Sponge" },
  145.             WashCloth = { enabled = true, Title = "Wash Cloth", Description = "Requirements: 1x Dirty Cloth" },
  146.         },
  147.         Duty = {
  148.             Coords = vec3(-345.86, -122.94, 39.11),
  149.             Radius = 0.4,
  150.             debugPoly = false,
  151.         },
  152.         Garage = {
  153.             Ped = {
  154.                 Model = "s_m_y_xmech_01", Coords = vec4(-356.25, -128.18, 39.43 - 1.0, 81.87),
  155.                 Occupied = false, Scenario = "WORLD_HUMAN_SMOKING"
  156.             },
  157.             Vehicles = {
  158.                 { Model = "flatbed", Label = "Flatbed" },
  159.             },
  160.             SpawnPoints = {
  161.                 { Coords = vector3(-359.64, -126.65, 38.7), Heading = 162.03, Radius = 3.0 }
  162.             },
  163.         },
  164.     }, --]]
  165. }
  166.  
  167. Config.Actions = {
  168.     Repair = {
  169.         DrawOutline = false,
  170.         Effect = "Repair",
  171.         Log = "had repaired car",
  172.         RequiredItems = {
  173.             { item = "repairkit", count = 1, remove = true },
  174.         },
  175.         AddItems = {
  176.             -- nil
  177.         },
  178.         animation = {
  179.             Duration = 5000,
  180.             text = "Repairing the car",
  181.             anim = {
  182.                 dict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@",
  183.                 clip = "machinic_loop_mechandplayer",
  184.             },
  185.             prop = {
  186.                 model = `v_ind_cs_wrench`,
  187.                 pos = vec3(0.1, -0.02, 0.0),
  188.                 rot = vec3(1.0, -55.0, 0.0),
  189.                 bone = 18905
  190.             },
  191.         }
  192.     },
  193.     Clean = {
  194.         DrawOutline = false,
  195.         Effect = "SmallClean",
  196.         Log = "had cleaned car",
  197.         RequiredItems = {
  198.             { item = "sponge", count = 1, remove = true },
  199.         },
  200.         AddItems = {
  201.             { item = "sponge_dirty", count = 1 },
  202.         },
  203.         animation = {
  204.             Duration = 5000,
  205.             text = "Washing the car",
  206.             anim = {
  207.                 dict = "timetable@floyd@clean_kitchen@base",
  208.                 clip = "base",
  209.             },
  210.             prop = {
  211.                 model = `prop_sponge_01`,
  212.                 pos = vec3(0.0, 0.0, -0.01),
  213.                 rot = vec3(90.0, 0.0, 0.0),
  214.                 bone = 28422
  215.             },
  216.         }
  217.     },
  218.     CarWax = {
  219.         DrawOutline = false,
  220.         Effect = "Clean",
  221.         Log = "had carwaxed car",
  222.         RequiredItems = {
  223.             { item = "carwax", count = 1, remove = true },
  224.             { item = "cloth", count = 1, remove = true },
  225.         },
  226.         AddItems = {
  227.             { item = "cloth_dirty", count = 1 },
  228.         },
  229.         animation = {
  230.             Duration = 10000,
  231.             text = "Waxing the car",
  232.             anim = {
  233.                 dict = "gestures@f@standing@casual",
  234.                 clip = "gesture_hand_down",
  235.             },
  236.             prop = {
  237.                 model = `v_serv_bs_spray`,
  238.                 pos = vec3(0.12, -0.04, 0.08),
  239.                 rot = vec3(-130.0, 0.0, 0.0),
  240.                 bone = 18905
  241.             },
  242.         }
  243.     },
  244.     LockPick = {
  245.         DrawOutline = false,
  246.         Effect = "LockPick",
  247.         Log = "had lockpicked car",
  248.         RequiredItems = {
  249.             { item = "lockpick", count = 1, remove = true },
  250.         },
  251.         AddItems = {
  252.             --nil
  253.         },
  254.         animation = {
  255.             Duration = 10000,
  256.             text = "Lockpicking the car",
  257.             anim = {
  258.                 dict = "mini@repair",
  259.                 clip = "fixing_a_ped"
  260.             },
  261.             prop = {
  262.                 model = `prop_tool_screwdvr02`,
  263.                 pos = vec3(0.14, 0.0, -0.01),
  264.                 rot = vec3(60.0, -147.0, 30.0),
  265.                 bone = 57005
  266.             },
  267.         }
  268.     }
  269. }
  270.  
  271. Config.WashActions = {
  272.     WashCloth = {
  273.         Log = "had cleaned dirty cloth",
  274.         RequiredItems = {
  275.             { item = "cloth_dirty", count = 1, remove = true },
  276.         },
  277.         AddItems = {
  278.             { item = "cloth", count = 1 },
  279.         },
  280.         animation = {
  281.             Duration = 5000,
  282.             text = "Washing dirty cloth",
  283.             anim = {
  284.                 dict = "mp_arresting",
  285.                 clip = "a_uncuff",
  286.             },
  287.             prop = {
  288.                 model = `prop_sponge_01`,
  289.                 pos = vec3(0.12, 0.05, -0.05),
  290.                 rot = vec3(87.0, 76.0, 0.0),
  291.                 bone = 57005
  292.             },
  293.         }
  294.     },
  295.     WashSponge = {
  296.         Log = "had cleaned dirty sponge",
  297.         RequiredItems = {
  298.             { item = "sponge_dirty", count = 1, remove = true },
  299.         },
  300.         AddItems = {
  301.             { item = "sponge", count = 1 },
  302.         },
  303.         animation = {
  304.             Duration = 5000,
  305.             text = "Washing dirty sponge",
  306.             anim = {
  307.                 dict = "mp_arresting",
  308.                 clip = "a_uncuff",
  309.             },
  310.             prop = {
  311.                 model = `prop_sponge_01`,
  312.                 pos = vec3(0.12, 0.05, -0.05),
  313.                 rot = vec3(87.0, 76.0, 0.0),
  314.                 bone = 57005
  315.             },
  316.         }
  317.     }
  318. }
  319.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement