1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-19 01:58:34 +02:00
parent 1af392096b
commit 511bcc4888
2 changed files with 107 additions and 23 deletions

View file

@ -46,57 +46,131 @@ end)
-- Helper function to convert weapon hash to name -- Helper function to convert weapon hash to name
function GetWeaponNameFromHash(hash) function GetWeaponNameFromHash(hash)
local weapons = { local weapons = {
-- Melee weapons
[GetHashKey('WEAPON_DAGGER')] = 'weapon_dagger',
[GetHashKey('WEAPON_BAT')] = 'weapon_bat',
[GetHashKey('WEAPON_BOTTLE')] = 'weapon_bottle',
[GetHashKey('WEAPON_CROWBAR')] = 'weapon_crowbar',
[GetHashKey('WEAPON_FLASHLIGHT')] = 'weapon_flashlight',
[GetHashKey('WEAPON_GOLFCLUB')] = 'weapon_golfclub',
[GetHashKey('WEAPON_HAMMER')] = 'weapon_hammer',
[GetHashKey('WEAPON_HATCHET')] = 'weapon_hatchet',
[GetHashKey('WEAPON_KNUCKLE')] = 'weapon_knuckle',
[GetHashKey('WEAPON_KNIFE')] = 'weapon_knife',
[GetHashKey('WEAPON_MACHETE')] = 'weapon_machete',
[GetHashKey('WEAPON_SWITCHBLADE')] = 'weapon_switchblade',
[GetHashKey('WEAPON_NIGHTSTICK')] = 'weapon_nightstick',
[GetHashKey('WEAPON_WRENCH')] = 'weapon_wrench',
[GetHashKey('WEAPON_BATTLEAXE')] = 'weapon_battleaxe',
[GetHashKey('WEAPON_POOLCUE')] = 'weapon_poolcue',
[GetHashKey('WEAPON_STONE_HATCHET')] = 'weapon_stone_hatchet',
-- Handguns
[GetHashKey('WEAPON_PISTOL')] = 'weapon_pistol', [GetHashKey('WEAPON_PISTOL')] = 'weapon_pistol',
[GetHashKey('WEAPON_PISTOL_MK2')] = 'weapon_pistol_mk2',
[GetHashKey('WEAPON_COMBATPISTOL')] = 'weapon_combatpistol', [GetHashKey('WEAPON_COMBATPISTOL')] = 'weapon_combatpistol',
[GetHashKey('WEAPON_APPISTOL')] = 'weapon_appistol', [GetHashKey('WEAPON_APPISTOL')] = 'weapon_appistol',
[GetHashKey('WEAPON_STUNGUN')] = 'weapon_stungun',
[GetHashKey('WEAPON_PISTOL50')] = 'weapon_pistol50', [GetHashKey('WEAPON_PISTOL50')] = 'weapon_pistol50',
[GetHashKey('WEAPON_SNSPISTOL')] = 'weapon_snspistol', [GetHashKey('WEAPON_SNSPISTOL')] = 'weapon_snspistol',
[GetHashKey('WEAPON_SNSPISTOL_MK2')] = 'weapon_snspistol_mk2',
[GetHashKey('WEAPON_HEAVYPISTOL')] = 'weapon_heavypistol', [GetHashKey('WEAPON_HEAVYPISTOL')] = 'weapon_heavypistol',
[GetHashKey('WEAPON_VINTAGEPISTOL')] = 'weapon_vintagepistol', [GetHashKey('WEAPON_VINTAGEPISTOL')] = 'weapon_vintagepistol',
[GetHashKey('WEAPON_STUNGUN')] = 'weapon_stungun',
[GetHashKey('WEAPON_FLAREGUN')] = 'weapon_flaregun', [GetHashKey('WEAPON_FLAREGUN')] = 'weapon_flaregun',
[GetHashKey('WEAPON_MARKSMANPISTOL')] = 'weapon_marksmanpistol', [GetHashKey('WEAPON_MARKSMANPISTOL')] = 'weapon_marksmanpistol',
[GetHashKey('WEAPON_REVOLVER')] = 'weapon_revolver', [GetHashKey('WEAPON_REVOLVER')] = 'weapon_revolver',
[GetHashKey('WEAPON_REVOLVER_MK2')] = 'weapon_revolver_mk2',
[GetHashKey('WEAPON_DOUBLEACTION')] = 'weapon_doubleaction',
[GetHashKey('WEAPON_RAYPISTOL')] = 'weapon_raypistol',
[GetHashKey('WEAPON_CERAMICPISTOL')] = 'weapon_ceramicpistol',
[GetHashKey('WEAPON_NAVYREVOLVER')] = 'weapon_navyrevolver',
[GetHashKey('WEAPON_GADGETPISTOL')] = 'weapon_gadgetpistol',
[GetHashKey('WEAPON_STUNGUN_MP')] = 'weapon_stungun_mp',
-- Submachine Guns
[GetHashKey('WEAPON_MICROSMG')] = 'weapon_microsmg', [GetHashKey('WEAPON_MICROSMG')] = 'weapon_microsmg',
[GetHashKey('WEAPON_SMG')] = 'weapon_smg', [GetHashKey('WEAPON_SMG')] = 'weapon_smg',
[GetHashKey('WEAPON_SMG_MK2')] = 'weapon_smg_mk2',
[GetHashKey('WEAPON_ASSAULTSMG')] = 'weapon_assaultsmg', [GetHashKey('WEAPON_ASSAULTSMG')] = 'weapon_assaultsmg',
[GetHashKey('WEAPON_MG')] = 'weapon_mg', [GetHashKey('WEAPON_COMBATPDW')] = 'weapon_combatpdw',
[GetHashKey('WEAPON_COMBATMG')] = 'weapon_combatmg', [GetHashKey('WEAPON_MACHINEPISTOL')] = 'weapon_machinepistol',
[GetHashKey('WEAPON_GUSENBERG')] = 'weapon_gusenberg', [GetHashKey('WEAPON_MINISMG')] = 'weapon_minismg',
[GetHashKey('WEAPON_ASSAULTRIFLE')] = 'weapon_assaultrifle', [GetHashKey('WEAPON_RAYCARBINE')] = 'weapon_raycarbine',
[GetHashKey('WEAPON_CARBINERIFLE')] = 'weapon_carbinerifle',
[GetHashKey('WEAPON_ADVANCEDRIFLE')] = 'weapon_advancedrifle', -- Shotguns
[GetHashKey('WEAPON_SPECIALCARBINE')] = 'weapon_specialcarbine',
[GetHashKey('WEAPON_BULLPUPRIFLE')] = 'weapon_bullpuprifle',
[GetHashKey('WEAPON_COMPACTRIFLE')] = 'weapon_compactrifle',
[GetHashKey('WEAPON_PUMPSHOTGUN')] = 'weapon_pumpshotgun', [GetHashKey('WEAPON_PUMPSHOTGUN')] = 'weapon_pumpshotgun',
[GetHashKey('WEAPON_PUMPSHOTGUN_MK2')] = 'weapon_pumpshotgun_mk2',
[GetHashKey('WEAPON_SAWNOFFSHOTGUN')] = 'weapon_sawnoffshotgun', [GetHashKey('WEAPON_SAWNOFFSHOTGUN')] = 'weapon_sawnoffshotgun',
[GetHashKey('WEAPON_BULLPUPSHOTGUN')] = 'weapon_bullpupshotgun',
[GetHashKey('WEAPON_ASSAULTSHOTGUN')] = 'weapon_assaultshotgun', [GetHashKey('WEAPON_ASSAULTSHOTGUN')] = 'weapon_assaultshotgun',
[GetHashKey('WEAPON_BULLPUPSHOTGUN')] = 'weapon_bullpupshotgun',
[GetHashKey('WEAPON_MUSKET')] = 'weapon_musket', [GetHashKey('WEAPON_MUSKET')] = 'weapon_musket',
[GetHashKey('WEAPON_HEAVYSHOTGUN')] = 'weapon_heavyshotgun', [GetHashKey('WEAPON_HEAVYSHOTGUN')] = 'weapon_heavyshotgun',
[GetHashKey('WEAPON_DBSHOTGUN')] = 'weapon_dbshotgun', [GetHashKey('WEAPON_DBSHOTGUN')] = 'weapon_dbshotgun',
[GetHashKey('WEAPON_AUTOSHOTGUN')] = 'weapon_autoshotgun',
[GetHashKey('WEAPON_COMBATSHOTGUN')] = 'weapon_combatshotgun',
-- Assault Rifles
[GetHashKey('WEAPON_ASSAULTRIFLE')] = 'weapon_assaultrifle',
[GetHashKey('WEAPON_ASSAULTRIFLE_MK2')] = 'weapon_assaultrifle_mk2',
[GetHashKey('WEAPON_CARBINERIFLE')] = 'weapon_carbinerifle',
[GetHashKey('WEAPON_CARBINERIFLE_MK2')] = 'weapon_carbinerifle_mk2',
[GetHashKey('WEAPON_ADVANCEDRIFLE')] = 'weapon_advancedrifle',
[GetHashKey('WEAPON_SPECIALCARBINE')] = 'weapon_specialcarbine',
[GetHashKey('WEAPON_SPECIALCARBINE_MK2')] = 'weapon_specialcarbine_mk2',
[GetHashKey('WEAPON_BULLPUPRIFLE')] = 'weapon_bullpuprifle',
[GetHashKey('WEAPON_BULLPUPRIFLE_MK2')] = 'weapon_bullpuprifle_mk2',
[GetHashKey('WEAPON_COMPACTRIFLE')] = 'weapon_compactrifle',
[GetHashKey('WEAPON_MILITARYRIFLE')] = 'weapon_militaryrifle',
[GetHashKey('WEAPON_HEAVYRIFLE')] = 'weapon_heavyrifle',
[GetHashKey('WEAPON_TACTICALRIFLE')] = 'weapon_tacticalrifle',
-- Light Machine Guns
[GetHashKey('WEAPON_MG')] = 'weapon_mg',
[GetHashKey('WEAPON_COMBATMG')] = 'weapon_combatmg',
[GetHashKey('WEAPON_COMBATMG_MK2')] = 'weapon_combatmg_mk2',
[GetHashKey('WEAPON_GUSENBERG')] = 'weapon_gusenberg',
-- Sniper Rifles
[GetHashKey('WEAPON_SNIPERRIFLE')] = 'weapon_sniperrifle', [GetHashKey('WEAPON_SNIPERRIFLE')] = 'weapon_sniperrifle',
[GetHashKey('WEAPON_HEAVYSNIPER')] = 'weapon_heavysniper', [GetHashKey('WEAPON_HEAVYSNIPER')] = 'weapon_heavysniper',
[GetHashKey('WEAPON_HEAVYSNIPER_MK2')] = 'weapon_heavysniper_mk2',
[GetHashKey('WEAPON_MARKSMANRIFLE')] = 'weapon_marksmanrifle', [GetHashKey('WEAPON_MARKSMANRIFLE')] = 'weapon_marksmanrifle',
[GetHashKey('WEAPON_GRENADELAUNCHER')] = 'weapon_grenadelauncher', [GetHashKey('WEAPON_MARKSMANRIFLE_MK2')] = 'weapon_marksmanrifle_mk2',
[GetHashKey('WEAPON_PRECISIONRIFLE')] = 'weapon_precisionrifle',
-- Heavy Weapons
[GetHashKey('WEAPON_RPG')] = 'weapon_rpg', [GetHashKey('WEAPON_RPG')] = 'weapon_rpg',
[GetHashKey('WEAPON_GRENADELAUNCHER')] = 'weapon_grenadelauncher',
[GetHashKey('WEAPON_GRENADELAUNCHER_SMOKE')] = 'weapon_grenadelauncher_smoke',
[GetHashKey('WEAPON_MINIGUN')] = 'weapon_minigun', [GetHashKey('WEAPON_MINIGUN')] = 'weapon_minigun',
[GetHashKey('WEAPON_FIREWORK')] = 'weapon_firework', [GetHashKey('WEAPON_FIREWORK')] = 'weapon_firework',
[GetHashKey('WEAPON_RAILGUN')] = 'weapon_railgun', [GetHashKey('WEAPON_RAILGUN')] = 'weapon_railgun',
[GetHashKey('WEAPON_HOMINGLAUNCHER')] = 'weapon_hominglauncher', [GetHashKey('WEAPON_HOMINGLAUNCHER')] = 'weapon_hominglauncher',
[GetHashKey('WEAPON_COMPACTLAUNCHER')] = 'weapon_compactlauncher',
[GetHashKey('WEAPON_RAYMINIGUN')] = 'weapon_rayminigun',
[GetHashKey('WEAPON_EMPLAUNCHER')] = 'weapon_emplauncher',
-- Throwables
[GetHashKey('WEAPON_GRENADE')] = 'weapon_grenade', [GetHashKey('WEAPON_GRENADE')] = 'weapon_grenade',
[GetHashKey('WEAPON_BZGAS')] = 'weapon_bzgas',
[GetHashKey('WEAPON_MOLOTOV')] = 'weapon_molotov',
[GetHashKey('WEAPON_STICKYBOMB')] = 'weapon_stickybomb', [GetHashKey('WEAPON_STICKYBOMB')] = 'weapon_stickybomb',
[GetHashKey('WEAPON_PROXMINE')] = 'weapon_proxmine', [GetHashKey('WEAPON_PROXMINE')] = 'weapon_proxmine',
[GetHashKey('WEAPON_BZGAS')] = 'weapon_bzgas',
[GetHashKey('WEAPON_SMOKEGRENADE')] = 'weapon_smokegrenade',
[GetHashKey('WEAPON_MOLOTOV')] = 'weapon_molotov',
[GetHashKey('WEAPON_FIREEXTINGUISHER')] = 'weapon_fireextinguisher',
[GetHashKey('WEAPON_PETROLCAN')] = 'weapon_petrolcan',
[GetHashKey('WEAPON_SNOWBALL')] = 'weapon_snowball', [GetHashKey('WEAPON_SNOWBALL')] = 'weapon_snowball',
[GetHashKey('WEAPON_FLARE')] = 'weapon_flare', [GetHashKey('WEAPON_PIPEBOMB')] = 'weapon_pipebomb',
[GetHashKey('WEAPON_BALL')] = 'weapon_ball', [GetHashKey('WEAPON_BALL')] = 'weapon_ball',
-- Add any additional weapons your server uses [GetHashKey('WEAPON_SMOKEGRENADE')] = 'weapon_smokegrenade',
[GetHashKey('WEAPON_FLARE')] = 'weapon_flare',
-- Miscellaneous
[GetHashKey('WEAPON_PETROLCAN')] = 'weapon_petrolcan',
[GetHashKey('WEAPON_FIREEXTINGUISHER')] = 'weapon_fireextinguisher',
[GetHashKey('WEAPON_HAZARDCAN')] = 'weapon_hazardcan',
[GetHashKey('WEAPON_FERTILIZERCAN')] = 'weapon_fertilizercan',
-- DLC Weapons
[GetHashKey('WEAPON_CANDYCANE')] = 'weapon_candycane',
[GetHashKey('WEAPON_METALDETECTOR')] = 'weapon_metaldetector',
} }
return weapons[hash] return weapons[hash]

View file

@ -10562,7 +10562,7 @@ itemsData = {
weight = 100, weight = 100,
label = 'Tüte Blue Death', label = 'Tüte Blue Death',
unique = true, unique = true,
useable = false, useable = true,
image = 'bag_blue_death.png', image = 'bag_blue_death.png',
name = 'bag_blue_death', name = 'bag_blue_death',
}, },
@ -10570,12 +10570,22 @@ itemsData = {
shouldClose = true, shouldClose = true,
type = 'item', type = 'item',
description = '', description = '',
weight = 50000, weight = 20000,
label = 'Plastikbox', label = 'Plastikbox',
unique = true, unique = true,
useable = false, useable = true,
image = 'plastic_box.png', image = 'plastic_box.png',
name = 'plastic_box', name = 'plastic_box',
}, },
weapon_repair_kit = {
shouldClose = true,
type = 'item',
description = '',
weight = 1000,
label = 'Plastikbox',
unique = true,
useable = false,
image = 'weapon_repair_kit.png',
name = 'weapon_repair_kit',
},
} }