Aty Herstellung
Aty Herstellung - ein professionelles ESX Skript mit maĂźgeschneiderten Funktionen und optimierter Serverleistung.
Config file
Config = {
Framework = qb, -- qb oder esx oder oldesx
MySQL = oxmysql, -- oxmysql oder ghmattimysql oder false
Tebex = https://ak4y.tebex.io/,
BoostPrice = 100,
BoostPercentage = 0.5, -- 0.5 = 50%
CoreExport = function()
if Config.Framework == qb then
return exports[qb-core]:GetCoreObject()
elseif Config.Framework == esx then
return exports[es_extended]:getSharedObject()
end
end,
CraftingTables = {
[Polizei] = {
Coords = vector3(454.3285, -979.7649, 30.6896),
Job = police, -- alle oder Jobname
Grade = 2, -- Mindestjobgrad
Distance = 1.0, -- Interaktionsdistanz
Marker = {
Type = 2,
Size = vector3(0.5, 0.5, 0.5),
Color = {
r = 255,
g = 255,
b = 255,
a = 200
}
},
Blip = {
Sprite = 110,
Color = 3,
Label = "Polizei Crafting-Tisch"
},
Categories = {
{categoryCode = all, categoryLabel = "Alles"},
{categoryCode = weapons, categoryLabel = "Waffen"},
{categoryCode = consumables, categoryLabel = "Verbrauchsmaterialien"},
{categoryCode = attachments, categoryLabel = "Zubehör"}
},
Items = {
{itemCategory = consumables, itemCode = bandage, itemLabel = "Bandage", itemImage = "bandage.png", itemLevel = 1, itemDuration = 10, itemPrice = 50, itemExp = 10, itemDesc = "Eine einfache Bandage", ingredients = {{itemCode = bandage, quantity = 5, label = "Stoff", image = "cloth.png"}}},
{itemCategory = attachments, itemCode = clip_attachment, itemLabel = "Clip", itemImage = "clip.png", itemLevel = 1, itemDuration = 20, itemPrice = 100, itemExp = 15, itemDesc = "Ein einfacher Clip", ingredients = {{itemCode = iron, quantity = 2, label = "Eisen", image = "iron.png"}}},
{itemCategory = weapons, itemCode = weapon_pistol, itemLabel = "Pistole MKII", itemImage = "pistol.png", itemLevel = 1, itemDuration = 30, itemPrice = 100, itemExp = 15, itemDesc = "Eine einfache Pistole", ingredients = {{itemCode = iron, quantity = 5, label = "Eisen", image = "iron.png"}, {itemCode = wood, quantity = 2, label = "Holz", image = "wood.png"}}},
{itemCategory = weapons, itemCode = rifle, itemLabel = "Gewehr MKII", itemImage = "rifle.png", itemLevel = 2, itemDuration = 60, itemPrice = 200, itemExp = 30, itemDesc = "Ein einfaches Gewehr", ingredients = {{itemCode = iron, quantity = 10, label = "Eisen", image = "iron.png"}, {itemCode = wood, quantity = 5, label = "Holz", image = "wood.png"}}},
{itemCategory = weapons, itemCode = shotgun, itemLabel = "Schrotflinte MKII", itemImage = "shotgun.png", itemLevel = 3, itemDuration = 60, itemPrice = 300, itemExp = 45, itemDesc = "Eine einfache Schrotflinte", ingredients = {{itemCode = iron, quantity = 15, label = "Eisen", image = "iron.png"}, {itemCode = wood, quantity = 10, label = "Holz", image = "wood.png"}}},
{itemCategory = weapons, itemCode = sniper, itemLabel = "ScharfschĂĽtzengewehr MKII", itemImage = "sniper.png", itemLevel = 4, itemDuration = 60, itemPrice = 400, itemExp = 60, itemDesc = "Ein einfaches ScharfschĂĽtzengewehr", ingredients = {{itemCode = iron, quantity = 20, label = "Eisen", image = "iron.png"}, {itemCode = wood, quantity = 15, label = "Holz", image = "wood.png"}}}
}
}
},
Levels = {
[1] = {exp = 0},
[2] = {exp = 50},
[3] = {exp = 100},
[4] = {exp = 150},
[5] = {exp = 250},
[6] = {exp = 350},
[7] = {exp = 500},
[8] = {exp = 700},
[9] = {exp = 1000},
[10] = {exp = 1300},
[11] = {exp = 1600},
[12] = {exp = 2000},
[13] = {exp = 2500},
[14] = {exp = 3000},
[15] = {exp = 4000},
},
AttachmentItems ={
[clip] = clip_attachment,
[silencer] = suppressor_attachment,
[flashlight] = flashlight_attachment,
[scope] = smallscope_attachment,
[grip] = grip_attachment,
},
Attachments = {
{itemCode = weapon_pistol, attachments = { [clip] = {hash = GetHashKey(COMPONENT_PISTOL_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_PI_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_PI_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_combatpistol, attachments = { [clip] = {hash = GetHashKey(COMPONENT_COMBATPISTOL_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_PI_SUPP), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_PI_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_appistol, attachments = { [clip] = {hash = GetHashKey(COMPONENT_APPISTOL_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_PI_SUPP), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_PI_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_microsmg, attachments = { [clip] = {hash = GetHashKey(COMPONENT_MICROSMG_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_PI_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_MACRO_02), label = "Visier"}}},
{itemCode = weapon_smg, attachments = { [clip] = {hash = GetHashKey(COMPONENT_SMG_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_MACRO_02), label = "Visier"}}},
{itemCode = weapon_assaultsmg, attachments = { [clip] = {hash = GetHashKey(COMPONENT_ASSAULTSMG_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_MACRO), label = "Visier"}}},
{itemCode = weapon_assaultrifle, attachments = { [clip] = {hash = GetHashKey(COMPONENT_ASSAULTRIFLE_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_MACRO), label = "Visier"}, [grip] = {hash = GetHashKey(COMPONENT_AT_AR_AFGRIP), label = "Griff"}}},
{itemCode = weapon_carbinerifle, attachments = { [clip] = {hash = GetHashKey(COMPONENT_CARBINERIFLE_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_MEDIUM), label = "Visier"}, [grip] = {hash = GetHashKey(COMPONENT_AT_AR_AFGRIP), label = "Griff"}}},
{itemCode = weapon_advancedrifle, attachments = { [clip] = {hash = GetHashKey(COMPONENT_ADVANCEDRIFLE_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_SMALL), label = "Visier"}, [grip] = {hash = GetHashKey(COMPONENT_AT_AR_AFGRIP), label = "Griff"}}},
{itemCode = weapon_specialcarbine, attachments = { [clip] = {hash = GetHashKey(COMPONENT_SPECIALCARBINE_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_MEDIUM), label = "Visier"}, [grip] = {hash = GetHashKey(COMPONENT_AT_AR_AFGRIP), label = "Griff"}}},
{itemCode = weapon_bullpuprifle, attachments = { [clip] = {hash = GetHashKey(COMPONENT_BULLPUPRIFLE_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_SMALL), label = "Visier"}, [grip] = {hash = GetHashKey(COMPONENT_AT_AR_AFGRIP), label = "Griff"}}},
{itemCode = weapon_pumpshotgun, attachments = { [clip] = {hash = GetHashKey(COMPONENT_PUMPSHOTGUN_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_SR_SUPP), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_sawnoffshotgun, attachments = { [clip] = {hash = GetHashKey(COMPONENT_SAWNOFFSHOTGUN_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_assaultshotgun, attachments = { [clip] = {hash = GetHashKey(COMPONENT_ASSAULTSHOTGUN_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_heavysniper, attachments = { [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_LARGE), label = "Visier"}}},
{itemCode = weapon_snspistol, attachments = { [clip] = {hash = GetHashKey(COMPONENT_SNSPISTOL_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_PI_SUPP), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_PI_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_gusenberg, attachments = { [clip] = {hash = GetHashKey(COMPONENT_GUSENBERG_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_PI_SUPP), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_PI_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_specialcarbine_mk2, attachments = { [clip] = {hash = GetHashKey(COMPONENT_SPECIALCARBINE_MK2_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_MEDIUM_MK2), label = "Visier"}, [grip] = {hash = GetHashKey(COMPONENT_AT_AR_AFGRIP_02), label = "Griff"}}},
{itemCode = weapon_bullpuprifle_mk2, attachments = { [clip] = {hash = GetHashKey(COMPONENT_BULLPUPRIFLE_MK2_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_SMALL_MK2), label = "Visier"}, [grip] = {hash = GetHashKey(COMPONENT_AT_AR_AFGRIP_02), label = "Griff"}}},
{itemCode = weapon_pumpshotgun_mk2, attachments = { [clip] = {hash = GetHashKey(COMPONENT_PUMPSHOTGUN_MK2_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_SR_SUPP_03), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}}},
{itemCode = weapon_marksmanrifle_mk2, attachments = { [clip] = {hash = GetHashKey(COMPONENT_MARKSMANRIFLE_MK2_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_AR_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_AR_FLSH), label = "Taschenlampe"}, [scope] = {hash = GetHashKey(COMPONENT_AT_SCOPE_MEDIUM_MK2), label = "Visier"}, [grip] = {hash = GetHashKey(COMPONENT_AT_AR_AFGRIP_02), label = "Griff"}}},
{itemCode = weapon_revolver_mk2, attachments = { [clip] = {hash = GetHashKey(COMPONENT_REVOLVER_MK2_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_PI_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_PI_FLSH_03), label = "Taschenlampe"}}},
{itemCode = weapon_doubleaction, attachments = { [clip] = {hash = GetHashKey(COMPONENT_DOUBLEACTION_CLIP_02), label = "Erweiterter Clip"}, [silencer] = {hash = GetHashKey(COMPONENT_AT_PI_SUPP_02), label = "Dämpfer"}, [flashlight] = {hash = GetHashKey(COMPONENT_AT_PI_FLSH_03), label = "Taschenlampe"}}}
}
}



