Groot Development
Store
  • 👋Welcome
  • Coding Information
    • Register Key Mapping
  • ASSETS
    • 🕙g-duty
      • Why?
      • Installation
      • Config.lua
    • 📋g-scoreboard-V1
      • Installation
      • Config.lua
    • 📋g-scoreboardV2
      • Installation
      • Config.lua
      • Exports & Events
    • 🎁g-giftcard
      • Installation
      • Config.lua
      • Export
    • 🏡g-job-vehicle-shop
      • Installation
      • ⚙️Configuration
        • Exports
        • Create Vehicle Management Panel
        • Create Vehicle Shops
    • 💯g-redeem-code
      • 🗒️Features
      • Installation
      • ⛔Note
      • ⚙️Configuration
        • Create New item
    • 📖g-pausemenu
      • 🗒️Features
      • Installation
      • ⚙️Features Guide
        • Info Buttons
        • socials Buttons
        • Rules
        • Organization Avatar
    • 🛠️g-crafting
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ❔Why
      • ⚔️Exports
      • Configuration
        • How to Create New Station
        • How to Create crafting time for an item.
    • 🛒g-shopsV2
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ⚔️Exports
      • Configuration
        • How to Create New Shop
        • How to create new item
    • 🔧g-adv-modern-repairkit
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ⚙️Configuration
  • 📖g-pausemenu-simplified
    • 📦Patch Details
    • Installation
    • ❔Why
    • Configuration
      • Git Dev Patchs
  • FREE RELEASE
    • 🎁g-starterpack-gift
      • Installation
      • Config.lua
    • 👨‍🔬g-employee-chat-list
      • Installation
    • g-notifications
      • Installation
      • Notification
      • Framework Integration
      • Remove Notification By ID
Powered by GitBook
On this page
  1. ASSETS
  2. g-crafting
  3. Configuration

How to Create New Station

Copy and paste the existing crafting station codes.

Config.Crafting = {
	[1] = {
		coordinates = vector3(-2117.439453125, 3230.4172363281, 31.810297012329),
		heading = 234.7921,
		CraftingStationName = "Police Crafting",
		theme = "theme2",
		blip = {
			enable = true,
			blipID = 89,
			blipText = "Crafting",
			blipColor = 3,
			blipScale = 0.5,
		},

		MenuSetting = {
			TargetLabel = "Open Crafting",
			icon = "fa-solid fa-hammer", -- https://fontawesome.com/search?o=r&m=free
		},
		Jobs = { -- if job/gang = {} then anyone can access it
			["police"] = { 1, 2, 3 },
			["ambulance"] = { 1, 3 },
			["ballas"] = { 1, 2, 3 },
			["mechanic"] = { "everyone" }, -- If set to "everyone", any grade of users with this job can access it and if job = {} then anyone can access it
		},
		Table = {
			spawnTable = true, -- If true, a table will spawn at the coordinates
			propName = "gr_prop_gr_bench_02a",
			coords = vector3(-2117.439453125, 3230.4172363281, 31.810297012329),
			heading = 234.7921,
		},
		items = {
			{
				itemName = "weapon_assaultrifle_mk2",
				itemLabel = "Assault Rifle",
				level = 9,
				xp = 3,
				MaxAmount = 5,
				img = "weapon_assaultrifle_mk2",
				SuccessPercentage = 30, -- 100 = 100% success rate
				disable = false, -- If disable = true, items will only be visible once players reach the required level, and they can only be crafted if the player has the necessary ingredients. If disable = false, items will be visible by default.
				AdditionalItems = { -- if you don't want additional items, set it to AdditionalItems = {}
					{
						itemName = "lockpick",
						ItemLabel = "Lockpick",
						count = 1,
					},
					{
						itemName = "water_bottle",
						ItemLabel = "Water",
						count = 1,
					},
				},
				Ingredients = {
					{
						label = "Money",
						name = "money", -- item name and img name
						amount = 20,
						remove = false, -- If set to false, the item will not be removed from the player's inventory.
					},
					{
						label = "Iron",
						name = "iron",
						amount = 2,
						remove = true,
					},
				},
				category = "weapon",
				time = 0.1,
			},
			{
				itemName = "weapon_bat",
				itemLabel = "Baseball Bat",
				level = 8,
				xp = 3,
				MaxAmount = 1,
				img = "weapon_bat",
				SuccessPercentage = 50,
				disable = true,
				AdditionalItems = {
					{
						itemName = "water_bottle",
						ItemLabel = "Water",
						count = 1,
					},
				},
				Ingredients = {
					{
						label = "water",
						name = "water_bottle",
						amount = 1,
						remove = true,
					},
					{
						label = "Iron",
						name = "iron",
						amount = 2,
							remove = true,
					},
				},
				category = "weapon",
				time = 0.1,
			},
			{
				itemName = "weapon_heavypistol",
				itemLabel = "Heavy Pistol",
				level = 9,
				xp = 2,
				MaxAmount = 2,
				img = "weapon_heavypistol",
				SuccessPercentage = 3,
				disable = true,
				AdditionalItems = {},
				Ingredients = {
					{
						label = "Weapon Barrel",
						name = "weapon_barrel",
						amount = 1,
						remove = true,
					},
					{
						label = "Heavy Pistol Blueprint",
						name = "bp_weapon_pistol",
						amount = 1,
						remove = true,
					},
				},
				category = "weapon",
				time = 10,
			},
		},
	},
}
PreviousConfigurationNextHow to Create crafting time for an item.

Last updated 17 days ago

🛠️