Pixel Scripts Documentation
  • 👋Introduction
  • 🔧Admin Menu
    • 🖥️Installation
    • 🖇️Dependencies
    • 📖Configuration
  • 🔫Crafting
    • 🖥️Installation
    • 🖇️Dependencies
    • 📖Configuration
Powered by GitBook
On this page
  • Commands
  • Exports
  1. Crafting

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}
    }
}

Note: This script features an Experience Points (XP) system designed to enhance the gaming experience. If you have other scripts with similar functionalities, it's important to either disable to prevent conflicts.

To activate the XP system within this script, ensure that the 'XpSystem' flag is set to 'true.' Conversely, to deactivate it, set the flag to 'false.' This flag controls the functionality of the XP system, allowing you to tailor the script's behavior to your preferences.

XpSystem = true

Otherwise

XpSystem = false

Commands

/givecraftingxp

parameters{
    source, 
    amount xp
}

Exports

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

PreviousDependencies

Last updated 1 year ago

🔫
📖