Crafting Config

File: config.lua

EnterPoint: This point tells you where the teleport point is to get to the crafting menu.

LeavePoint: This point tells where the teleport point is to get out of the crafting menu.

OpenMenu: This point tells you where you can open the crafing menu.

Config.TeleportWeaponCraft = {

    EnterPoint = {
        x = -255.16148376465,
        y = -976.00054931641,
        z = 31.2200050354,
        heading = 100
    },

    LeavePoint = {
        x = -253.36265563965,
        y = -972.02459716797,
        z = 31.2200050354,
        heading = 100
    },

    OpenMenu = {
        x = -256.55947875977,
        y = -981.13311767578,
        z = 31.219980239868
    }
}

Here you can add weapons to the crafting menu. This is the template to add a weapon:

name: Name is the spawnname from a weapon. You can all weapons in fivem here.

label: Label is the display name from the weapon that you see in the crafting menu.

time: This is the crafting time for one weapon. So if you want to craft this weapon you need to wait this time in minutes and if you add more than one weapon, then the timer is calculated on each other.

price: This is the price that the player/society get removed if he crafts a weapon.

Config.CraftWeapons = {
    { name = 'WEAPON_APPISTOL', label = 'AP Pistol', time = 20, price = 100 },
    { name = 'WEAPON_PISTOL', label = 'Pistol', time = 10, price = 50 },
    { name = 'WEAPON_PUMPSHOTGUN', label = 'Pumpgun', time = 30, price = 200 }
}

This tells you if you want to use the crafting system, so if it is false you can use it and if it is true its disabled.

Config.DisalbeCrafting = false

If this is set to true, only the player who crafted the weapons can pick them up. If it is set to false, anyone who has the rank Config.ArmyJob can pick up the weapons.

Config.OnlyGetWeaponwhoCrafted = true

This number specifies the maximum number of weapons a person can craft in the crafting menu.

Config.MaxCraftWeapons = 15

This specifies whether the money is to be withdrawn from the player or from the society registered at Config.ArmySociety when crafting weapons.

Config.RemoveMoneyFromSociety = true

This number specifies how much ammunition should be given when you pick up a weapon from the crafting.

Config.GiveAmmoByCrafting = 250

Last updated