📖Configuration

Crafting = {}

Crafting = {
    Command = 'createCrafting',
    PermissionCommand = {'admin'},
    PropBench = 'gr_prop_gr_bench_02b',
    EnableDebug = true,
    XpSystem = true,
    ExperiancePerCraft = 2.5,
    Weapon = {
        ["w_sr_sniperrifle"] = {
            weaponCode = 'WEAPON_SNIPERRIFLE',
            weaponName = 'Sniper Rifle',
            requiredJob = true,
            requiredXp = 10,
            allowlistJob = {
                "police"
            },
            ItemRequired = {
                { itemName = "iron", quantity = 2},
                { itemName = "copper", quantity = 5}
            }
        },
        ["w_pi_pistol"] = {
            weaponCode = 'WEAPON_PISTOL',
            weaponName = 'Pistol',
            requiredJob = false,
            requiredXp = 0,
            allowlistJob = {
                "police"
            },
            ItemRequired = {
                { itemName = "iron", quantity = 1}
            }
        },
        ["w_ar_carbinerifle"] = {
            weaponCode = 'WEAPON_CARBINERIFLE',
            weaponName = 'Carabine Rifle',
            requiredJob = false,
            requiredXp = 1,
            allowlistJob = {
                "police",
            },
            ItemRequired = {
                { itemName = "iron", quantity = 1}
            }
        }
    },

    PositionCrafting = {
        {coords = vector3(-16.428142547607, 4.284556388855, 70.61304473877), heading =160.0}
    }
}

XpSystem = true

Otherwise

XpSystem = false

Commands

/givecraftingxp

parameters{
    source, 
    amount xp
}

Exports

exports["px_weapon-crafting"]:addPlayerXp(source, amountXp)

Last updated