Advertisement
Guest User

Config

a guest
Sep 14th, 2022
807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.12 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.Menu = "ox_lib" -- ContextMenu | types: ox_lib, qb-menu
  8. Config.NotificationType = "ox_lib" -- ESX, ox_lib, qbcore
  9. Config.Progress = "ox" -- progressBars, ox, qbcore
  10. Config.WeaponsAsItems = true -- if you are using old types of inventories which does not include weapons as items set this to false!
  11.  
  12. Config.Logs = { enabled = true, type = "webhook" } -- use webhook or ox_lib (datadog) Can be changed in server > sv_utils.lua
  13. Config.DropPlayer = false -- Drop (Kick) Player if tries to cheat!
  14. Config.AnticheatBan = false -- Change in server/sv_Utils.lua!!! WIll not work by default you need to add your custom trigger to ban player!
  15.  
  16. --Craftings
  17. Config.Craftings = {
  18.     Crafting_default_1 = { -- BurgerShot example / PolyZone
  19.         --Crafting Settings
  20.         Occupied = false, -- Dont change
  21.         Label = "Grill", --display label on help or target
  22.         job = { name = "burgershot", grade = 0 }, -- Required job to open crafting station
  23.         type = "PolyZone", -- Table, Marker, PolyZone
  24.         Positions = { coords = vec3(-1198.41, -894.95, 13.89), radius = 0.7, debug = false }, -- Circle PolyZone and coords for Table and Marker (if selected type)
  25.         Table = { Type = "target" --[[help, target]] , Prop = `gr_prop_gr_bench_04a`, Heading = 10.0, DrawDistance = 10.0 },
  26.         Marker = { DrawDistance = 100.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
  27.             Color = { r = 8, g = 137, b = 255, a = 150 } },
  28.         TargetIcon = "fas fa-drumstick-bite",
  29.         --Items Settings
  30.         CraftingItems = { -- Table for all craftable Items
  31.             Steak = {
  32.                 Title = "Steak", -- Context label
  33.                 Progress = "Grilling...", -- Progress bar label
  34.                 Icon = "fa-solid fa-drumstick-bite", -- icon for context
  35.                 Experience = { Required = 0, Add = 0 }, -- Required exp and How much should be add after crafting.
  36.                 Duration = 10, -- seconds to make!
  37.                 Blueprint = { item = nil, count = nil }, -- Blueprint item
  38.                 RequiredItems = { -- Table for required items
  39.                     { item = "raw_steak", label = "Raw Steak", count = 1, remove = true }, -- Which Items should are required
  40.                 },
  41.                 AddItems = { -- Table for item add
  42.                     { item = "steak", label = "Steak", count = 1 }, -- Which Items should be added
  43.                 },
  44.                 Animation = { enabled = false, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
  45.                 Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[[For correct Detach]] }, --TaskStartScenarioAtPosition
  46.  
  47.                 Prop = {
  48.                     enabled = false, -- Attach Prop Settings
  49.                     prop = `prop_tool_screwdvr02`, -- Prop model
  50.                     pos = vec3(0.14, 0.0, -0.01), -- Prop position
  51.                     rot = vec3(60.0, -147.0, 30.0), -- Prop rot
  52.                     bone = 57005 -- Player bone index
  53.                 },
  54.             },
  55.         }
  56.     },
  57.     Crafting_default_2 = { -- Crafting Station police expemple / Marker
  58.         Occupied = false, -- Dont change
  59.         Label = "Police Crafting", --display label on help or target
  60.         job = { name = "police", grade = 0 }, -- Required job to open crafting station
  61.         type = "Marker", -- Table, Marker, PolyZone
  62.         Positions = { coords = vec3(459.01, -982.54, 30.4), radius = 1.0, debug = false }, -- Circle PolyZone
  63.         Table = { Type = "target" --[[help, target]] , Prop = `gr_prop_gr_bench_04a`, Heading = 10.0,
  64.             DrawDistance = 100.0 },
  65.         Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
  66.             Color = { r = 8, g = 137, b = 255, a = 150 } },
  67.         TargetIcon = "fas fa-wrench",
  68.         CraftingItems = { -- Table for all craftable Items
  69.             weapon_pistol = {
  70.                 Title = "Pistol", -- Context label
  71.                 Progress = "Crafting...", -- Progress bar label
  72.                 Icon = "fa-solid fa-gun", -- icon for context
  73.                 Experience = { Required = 0, Add = 1 }, -- Required exp and How much should be add after crafting.
  74.                 Duration = 10, -- seconds to make!
  75.                 Blueprint = { item = nil, count = nil }, -- Blueprint item
  76.                 RequiredItems = { -- Table for required items
  77.                     { item = "scrap", label = "Scrap Metal", count = 10, remove = true }, -- Which Items should are required
  78.                 },
  79.                 AddItems = { -- Table for item add
  80.                     { item = "weapon_pistol", label = "Pistol", count = 1 }, -- Which Items should be added
  81.                 },
  82.                 Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
  83.                 Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[[For correct Detach]] }, --TaskStartScenarioAtPosition
  84.                 Prop = {
  85.                     enabled = true, -- Attach Prop Settings
  86.                     prop = `prop_tool_screwdvr02`, -- Prop model
  87.                     pos = vec3(0.14, 0.0, -0.01), -- Prop position
  88.                     rot = vec3(60.0, -147.0, 30.0), -- Prop rot
  89.                     bone = 57005 -- Player bone index
  90.                 },
  91.             },
  92.  
  93.             weapon_combatpistol = {
  94.                 Title = "Pistol", -- Context label
  95.                 Progress = "Making...", -- Progress bar label
  96.                 Icon = "fa-solid fa-gun", -- icon for context
  97.                 Experience = { Required = 2, Add = 1 }, -- Required exp and How much should be add after crafting.
  98.                 Duration = 10, -- seconds to make!
  99.                 Blueprint = { item = nil, count = nil }, -- Blueprint item
  100.                 RequiredItems = { -- Table for required items
  101.                     { item = "scrap", label = "Scrap Metal", count = 10, remove = true }, -- Which Items should are required
  102.                 },
  103.                 AddItems = { -- Table for item add
  104.                     { item = "weapon_combatpistol", label = "Combat Pistol", count = 1 }, -- Which Items should be added
  105.                 },
  106.                 Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
  107.                 Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[[For correct Detach]] }, --TaskStartScenarioAtPosition
  108.                 Prop = {
  109.                     enabled = true, -- Attach Prop Settings
  110.                     prop = `prop_tool_screwdvr02`, -- Prop model
  111.                     pos = vec3(0.14, 0.0, -0.01), -- Prop position
  112.                     rot = vec3(60.0, -147.0, 30.0), -- Prop rot
  113.                     bone = 57005 -- Player bone index
  114.                 },
  115.             },
  116.         }
  117.     },
  118.     Crafting_default_3 = { -- Crafting Mechanic expemple / Table - Help
  119.         Occupied = false, -- Dont change
  120.         Label = "Mechanic Crafting", --display label on help or target
  121.         job = { name = "bennys", grade = 0 }, -- Required job to open crafting station
  122.         type = "Table", -- Table, Marker, PolyZone
  123.         Positions = { coords = vec3(-213.91, -1333.83, 29.89), radius = 1.0, debug = false }, -- Circle PolyZone
  124.         Table = { Type = "help" --[[help, target]] , Prop = `gr_prop_gr_bench_04a`, Heading = 2.39 + 180.0,
  125.             DrawDistance = 100.0 },
  126.         Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
  127.             Color = { r = 8, g = 137, b = 255, a = 150 } },
  128.         TargetIcon = "fas fa-wrench",
  129.         CraftingItems = { -- Table for all craftable Items
  130.             repairkit = {
  131.                 Title = "Repair kit", -- Context label
  132.                 Progress = "Crafting...", -- Progress bar label
  133.                 Icon = "fa-solid fa-wrench", -- icon for context
  134.                 Experience = { Required = 0, Add = 0 }, -- Required exp and How much should be add after crafting.
  135.                 Duration = 10, -- seconds to make!
  136.                 Blueprint = { item = nil, count = nil }, -- Blueprint item
  137.                 RequiredItems = { -- Table for required items
  138.                     { item = "scrap", label = "Scrap Metal", count = 1, remove = true }, -- Which Items should are required
  139.                 },
  140.                 AddItems = { -- Table for item add
  141.                     { item = "repairkit", label = "Repair Kit", count = 1 }, -- Which Items should be added
  142.                 },
  143.                 Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
  144.                 Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[[For correct Detach]] }, --TaskStartScenarioAtPosition
  145.                 Prop = {
  146.                     enabled = true, -- Attach Prop Settings
  147.                     prop = `prop_tool_screwdvr02`, -- Prop model
  148.                     pos = vec3(0.14, 0.0, -0.01), -- Prop position
  149.                     rot = vec3(60.0, -147.0, 30.0), -- Prop rot
  150.                     bone = 57005 -- Player bone index
  151.                 },
  152.             },
  153.         }
  154.     },
  155.     Crafting_default_4 = { -- Crafting BlackMarker expemple / Table - Target
  156.         Occupied = false, -- Dont change
  157.         Label = "Crafting", --display label on help or target
  158.         job = { name = nil, grade = nil }, -- Required job to open crafting station
  159.         type = "Table", -- Table, Marker, PolyZone
  160.         Positions = { coords = vec3(989.04, -139.82, 72.09), radius = 1.0, debug = false }, -- Circle PolyZone
  161.         Table = { Type = "target" --[[help, target]] , Prop = `gr_prop_gr_bench_04a`, Heading = 64.01 + 180.0,
  162.             DrawDistance = 100.0 },
  163.         Marker = { DrawDistance = 10.0, Type = 21, Size = { x = 0.7, y = 0.7, z = 0.7 },
  164.             Color = { r = 8, g = 137, b = 255, a = 150 } },
  165.         TargetIcon = "fas fa-wrench",
  166.         CraftingItems = { -- Table for all craftable Items
  167.             weapon_pistol = {
  168.                 Title = "Pistol", -- Context label
  169.                 Progress = "Crafting...", -- Progress bar label
  170.                 Icon = "fa-solid fa-gun", -- icon for context
  171.                 Experience = { Required = 0, Add = 1 }, -- Required exp and How much should be add after crafting.
  172.                 Duration = 10, -- seconds to make!
  173.                 Blueprint = { item = nil, count = nil }, -- Blueprint item
  174.                 RequiredItems = { -- Table for required items
  175.                     { item = "scrap", label = "Scrap Metal", count = 5, remove = true }, -- Which Items should are required
  176.                 },
  177.                 AddItems = { -- Table for item add
  178.                     { item = "weapon_pistol", label = "Pistol", count = 1 }, -- Which Items should be added
  179.                 },
  180.                 Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
  181.                 Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[[For correct Detach]] }, --TaskStartScenarioAtPosition
  182.                 Prop = {
  183.                     enabled = true, -- Attach Prop Settings
  184.                     prop = `prop_tool_screwdvr02`, -- Prop model
  185.                     pos = vec3(0.14, 0.0, -0.01), -- Prop position
  186.                     rot = vec3(60.0, -147.0, 30.0), -- Prop rot
  187.                     bone = 57005 -- Player bone index
  188.                 },
  189.             },
  190.  
  191.             weapon_carbinerifle = {
  192.                 Title = "Carbine Rifle", -- Context label
  193.                 Progress = "Crafting...", -- Progress bar label
  194.                 Icon = "fa-solid fa-gun", -- icon for context
  195.                 Experience = { Required = 10, Add = 1 }, -- Required exp and How much should be add after crafting.
  196.                 Duration = 10, -- seconds to make!
  197.                 Blueprint = { item = "blueprint_carbine", label = "Carbine Rifle Blueprint", count = 1 }, -- Blueprint item
  198.                 RequiredItems = { -- Table for required items
  199.                     { item = "scrap", label = "Scrap Metal", count = 20, remove = true }, -- Which Items should are required
  200.                 },
  201.                 AddItems = { -- Table for item add
  202.                     { item = "weapon_carbinerifle", label = "Carbine Rifle", count = 1 }, -- Which Items should be added
  203.                 },
  204.                 Animation = { enabled = true, dict = "mini@repair", clip = "fixing_a_ped" }, -- TaskPlayAnim
  205.                 Scenario = { enabled = true, scenario = "PROP_HUMAN_BBQ", prop = `prop_fish_slice_01` --[[For correct Detach]] }, --TaskStartScenarioAtPosition
  206.                 Prop = {
  207.                     enabled = true, -- Attach Prop Settings
  208.                     prop = `prop_tool_screwdvr02`, -- Prop model
  209.                     pos = vec3(0.14, 0.0, -0.01), -- Prop position
  210.                     rot = vec3(60.0, -147.0, 30.0), -- Prop rot
  211.                     bone = 57005 -- Player bone index
  212.                 },
  213.             },
  214.         }
  215.     },
  216.  
  217. }
  218.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement