[ESX/QB] IF Crafting V1


Features

  • ESX / QB
  • Fully Customizable
  • 0.00ms (Best Optimize)
  • Full Responsive UI (4k Supported)
  • Levels System (Xp/lvl)
  • Weapon Information

Config

Config = Config or {
    ['Framework'] = {
        ['name'] = '', -- ESX, QBCore
        ['resource'] = '', -- es_extended, qb-core, if-core
    },
    ['Commands'] = {
        ['checkLevel'] = {
            command = 'mylevel',
            help = 'Check Your Current Crafting Level',
            enable = true
        },

        ['addlevel'] = {
            command = 'addlevel',
            help = 'Add Level to player',
            params = {
                help1 = 'Player Id',
                help2 = 'Levels Amount'
            },
            enable = true,
            permission = 'admin',
        }
    },
    ['BenchMethod'] = {
        Models = {
            `prop_toolchest_05`,
            `prop_tool_bench02_ld`,
            `prop_tool_bench02`,
            `prop_toolchest_02`,
            `prop_toolchest_03`,
            `prop_toolchest_03_l2`,
            `prop_toolchest_05`,
            `prop_toolchest_04`,
        },
        Target = false,
        TargetResource = 'qb-target',
        Ui = true
    },
    ['Categories'] = {
        ['weapons'] = {
            Icon = "fas fa-shield",
            ToolTip = "Weapons",
            Active = true,
            Items = {
                [1] = {
                    ShootingRate = 60,
                    Ammunition = 76,
					Components = 30,
                    Level = 20,
                    Gain = 3,
                    craftTime = 5, -- in sec
                    image = "/html/assets/itemsimg/rifle1.png", -- QBInventory, OXInventory, QSInventory or './html/assets/itemsimg/'
                    item = "weapon_assaultrifle",
                    Weapon = true,
                    materials = {
                        ['metalscrap'] = {
                            amount = 10,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 10,
                            image = "QBInventory",
                        },
                    },
				},
                [2] = {
                    ShootingRate = 60,
                    Ammunition = 60,
					Components = 40,
                    Level = 20,
                    Gain = 3,
                    craftTime = 5, -- in sec
                    image = "/html/assets/itemsimg/rifle2.png", -- QBInventory, OXInventory, QSInventory or './html/assets/itemsimg/'
                    item = "weapon_carbinerifle",
                    Weapon = true,
                    materials = {
                        ['metalscrap'] = {
                            amount = 10,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 10,
                            image = "QBInventory",
                        },
                    },
                },
                [3] = {
                    ShootingRate = 30,
                    Ammunition = 70,
					Components = 70,
                    Level = 3,
                    Gain = 3,
                    craftTime = 5, -- in sec
                    image = "/html/assets/itemsimg/pistol1.png", -- QBInventory, OXInventory, QSInventory or './html/assets/itemsimg/'
                    item = "weapon_carbinerifle",
                    Weapon = true,
                    materials = {
                        ['metalscrap'] = {
                            amount = 5,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 5,
                            image = "QBInventory",
                        },
                    },
                },
            },
        },
        ['heal'] = {
            Icon = "fa-solid fa-notes-medical",
            ToolTip = "Heal",
            Active = true,
            Items = {
                [1] = {
                    image = "/html/assets/itemsimg/firstaid.png",
                    item = "firstaid",
                    Weapon = false,
                    Level = 25,
                    Gain = 2,
                    craftTime = 10, -- in sec
                    materials = {
                        ['bandage'] = {
                            amount = 7,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 2,
                            image = "QBInventory",
                        },
                    },
                },
                [2] = {
                    image = "/html/assets/itemsimg/ifaks.png",
                    item = "ifaks",
                    Weapon = false,
                    Level = 5,
                    Gain = 1,
                    craftTime = 6, -- in sec
                    materials = {
                        ['bandage'] = {
                            amount = 4,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 1,
                            image = "QBInventory",
                        },
                    },
                },
                [3] = {
                    image = "/html/assets/itemsimg/painkillers.png",
                    item = "painkillers",
                    Weapon = false,
                    Level = 2,
                    Gain = 1,
                    craftTime = 6, -- in sec
                    materials = {
                        ['bandage'] = {
                            amount = 2,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 1,
                            image = "QBInventory",
                        },
                        ['glass'] = {
                            amount = 4,
                            image = "QBInventory",
                        },
                        ['joint'] = {
                            amount = 2,
                            image = "QBInventory",
                        },
                        ['beer'] = {
                            amount = 1,
                            image = "QBInventory",
                        },
                    },
                },
            },
        },
        ['ammo'] = {
            Icon = "fa-solid fa-fire",
            ToolTip = "Ammo",
            Active = true,
            Items = {
                [1] = {
                    image = "QBInventory",
                    item = "rifle_ammo",
                    Weapon = false,
                    Level = 30,
                    Gain = 1,
                    craftTime = 3, -- in sec
                    materials = {
                        ['metalscrap'] = {
                            amount = 400,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 200,
                            image = "QBInventory",
                        },
                    },
                },
                [2] = {
                    image = "QBInventory",
                    item = "pistol_ammo",
                    Weapon = false,
                    Level = 1,
                    Gain = 1,
                    craftTime = 6, -- in sec
                    materials = {
                        ['metalscrap'] = {
                            amount = 400,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 200,
                            image = "QBInventory",
                        },
                    },
                },
            },
        },
        ['items'] = {
            Icon = "fa-solid fa-sitemap",
            ToolTip = "Items",
            Active = true,
            Items = {
                [1] = {
                    image = "/html/assets/itemsimg/nitro.png",
                    item = "nitrous",
                    Weapon = false,
                    Level = 5,
                    Gain = 1,
                    craftTime = 3, -- in sec
                    materials = {
                        ['metalscrap'] = {
                            amount = 10,
                            image = "QBInventory",
                        },
                        ['rubber'] = {
                            amount = 5,
                            image = "QBInventory",
                        },
                        ['steel'] = {
                            amount = 3,
                            image = "QBInventory",
                        },
                        ['iron'] = {
                            amount = 2,
                            image = "QBInventory",
                        },
                        ['aluminum'] = {
                            amount = 3,
                            image = "QBInventory",
                        },
                    },
                },
                [2] = {
                    image = "/html/assets/itemsimg/hammer.png",
                    item = "lockpick",
                    Weapon = false,
                    Level = 2,
                    Gain = 1,
                    craftTime = 6, -- in sec
                    materials = {
                        ['aluminum'] = {
                            amount = 3,
                            image = "QBInventory",
                        },
                        ['labkey'] = {
                            amount = 200,
                            image = "QBInventory",
                        },
                    },
                },
                [3] = {
                    image = "/html/assets/itemsimg/armor.png",
                    item = "armor",
                    Weapon = false,
                    Level = 3,
                    Gain = 1,
                    craftTime = 6, -- in sec
                    materials = {
                        ['metalscrap'] = {
                            amount = 3,
                            image = "QBInventory",
                        },
                        ['plastic'] = {
                            amount = 2,
                            image = "QBInventory",
                        },
                        ['pinger'] = {
                            amount = 1,
                            image = "QBInventory",
                        },
                    },
                },
                [4] = {
                    image = "/html/assets/itemsimg/firework1.png",
                    item = "firework1",
                    Weapon = false,
                    Level = 1,
                    Gain = 1,
                    craftTime = 6, -- in sec
                    materials = {
                        ['rubber'] = {
                            amount = 2,
                            image = "QBInventory",
                        },
                        ['copper'] = {
                            amount = 3,
                            image = "QBInventory",
                        },
                    },
                },
            },
        },
    },
    ['ShowNotification'] = {
        ['Client'] = function (message, type) -- message, type
            --TriggerEvent('esx:showNotification', ...)
            --TriggerEvent('QBCore:Notify', ...)
			TriggerEvent('if-notifyv2:ShowNotification', message, type, 5000, "Crafting")
        end,
        ['Server'] = function (source, message, type) -- source, message, type
            local _source = source
            --TriggerClientEvent('esx:showNotification', _source, ...)
           -- TriggerClientEvent('QBCore:Notify', _source, ...)
		   TriggerClientEvent('if-notifyv2:ShowNotification', _source, message, type, 5000, "Crafting")
        end
    }
}

Dependencies

  • ESX
  • QBCore

Preview

Tebex

:gem: My Other Scripts :gem:
Battlepass V1
Banking V1
Banking V2
HUD V1
HUD V2
HUD V3
Chat V1
Crafting V1
Vehicleshop V2 (Dealership)
Weapon Shop V2
Vehicle Tuning V1 (Mechanic)
Realistic Fuel System (Gas Stations)
Gift System (Send Vehicle/Items to your friends as gift)
Luxury Markets (Weapon Store, Blackmarket, 24/7 Shops)
Luxury Clothing Store (All Clothes as item)(Meta Items)
Hot Tube (Jacuzzi)
Reports & Admin System
Barber Job (Ownable Barbers)
Animation Menu (Emotes)
Main Menu + VIP System (Pause Menu)
Rednight Vehicleshop (Dealership)
Rednight Markets (24/7 Shops)
Rednight Weaponshop
Redline Banking
Redline Markets (24/7 Shops)
Redline Tattoo Store
Redline Weaponshop
Redline Clothing Store
Redline Vehicle Rental
Redline Garage (Create Garage In-Game)
Redline Vehicleshop (Dealership)
OPS Banking (Card Robbery)
OPS Scoreboard
OPS Pet System
OPS Battlepass
DPS Login/Signup System (Advanced Register)(Verify Your Players)
DPS Spawn Selector
DPS HUD
DPS Guide Menu (Rules Menu)

|-------------------------------------|----------------------------|
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | +1000 |
| Requirements | ESX / QBCore |
| Support | Yes |

1 Like