Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local WeaponHashToLabel = {
- [0] = {"WT_INVALID", "WTU_INVALID"},
- [`weapon_unarmed`] = {"WT_UNARMED", "WTU_UNARMED", "WTD_UNARMED"},
- [`weapon_pistol`] = {"WT_PIST", "WTU_PIST", "WTD_PIST"},
- [`weapon_combatpistol`] = {"WT_PIST_CBT", "WTU_PIST_CBT", "WTD_PIST_CBT"},
- [`weapon_appistol`] = {"WT_PIST_AP", "WTU_PIST_AP", "WTD_PIST_AP"},
- [`weapon_smg`] = {"WT_SMG", "WTU_SMG", "WTD_SMG"},
- [`weapon_microsmg`] = {"WT_SMG_MCR", "WTU_SMG_MCR", "WTD_SMG_MCR"},
- [`weapon_assaultrifle`] = {"WT_RIFLE_ASL", "WTU_RIFLE_ASL", "WTD_RIFLE_ASL"},
- [`weapon_carbinerifle`] = {"WT_RIFLE_CBN", "WTU_RIFLE_CBN", "WTD_RIFLE_CBN"},
- [`weapon_advancedrifle`] = {"WT_RIFLE_ADV", "WTU_RIFLE_ADV", "WTD_RIFLE_ADV"},
- [`weapon_mg`] = {"WT_MG", "WTU_MG", "WTD_MG"},
- [`weapon_combatmg`] = {"WT_MG_CBT", "WTU_MG_CBT", "WTD_MG_CBT"},
- [`weapon_pumpshotgun`] = {"WT_SG_PMP", "WTU_SG_PMP", "WTD_SG_PMP"},
- [`weapon_sawnoffshotgun`] = {"WT_SG_SOF", "WTU_SG_SOF", "WTD_SG_SOF"},
- [`weapon_assaultshotgun`] = {"WT_SG_ASL", "WTU_SG_ASL", "WTD_SG_ASL"},
- [`weapon_heavysniper`] = {"WT_SNIP_HVY", "WTU_SNIP_HVY", "WTD_SNIP_HVY"},
- [`weapon_remotesniper`] = {"WT_SNIP_RMT", "WTU_SNIP_RMT", "WTD_SNIP_RMT"},
- [`weapon_sniperrifle`] = {"WT_SNIP_RIF", "WTU_SNIP_RIF", "WTD_SNIP_RIF"},
- [`weapon_grenadelauncher`] = {"WT_GL", "WTU_GL", "WTD_GL"},
- [`weapon_rpg`] = {"WT_RPG", "WTU_RPG", "WTD_RPG"},
- [`weapon_minigun`] = {"WT_MINIGUN", "WTU_MINIGUN", "WTD_MINIGUN"},
- [`weapon_grenade`] = {"WT_GNADE", "WTU_GNADE", "WTD_GNADE"},
- [`weapon_smokegrenade`] = {"WT_GNADE_SMK", "WTU_GNADE_SMK", "WTD_GNADE_SMK"},
- [`weapon_stickybomb`] = {"WT_GNADE_STK", "WTU_GNADE_STK", "WTD_GNADE_STK"},
- [`weapon_molotov`] = {"WT_MOLOTOV", "WTU_MOLOTOV", "WTD_MOLOTOV"},
- [`weapon_stungun`] = {"WT_STUN", "WTU_STUN", "WTD_STUN"},
- [`weapon_petrolcan`] = {"WT_PETROL", "WTU_PETROL", "WTD_PETROL"},
- [`weapon_electric_fence`] = {"WT_ELCFEN", "WTU_ELCFEN", "WTD_ELCFEN"},
- [`vehicle_weapon_tank`] = {"WT_V_TANK", "WTU_V_TANK", "WTD_V_TANK"},
- [`vehicle_weapon_space_rocket`] = {"WT_V_SPACERKT", "WTU_V_SPACERKT", "WTD_V_SPACERKT"},
- [`vehicle_weapon_player_laser`] = {"WT_V_PLRLSR", "WTU_V_PLRLSR", "WTD_V_PLRLSR"},
- [`object`] = {"WT_OBJECT", "WTU_OBJECT", "WTD_OBJECT"},
- [`gadget_parachute`] = {"WT_PARA", "WTU_PARA", "WTD_PARA"},
- [1742569970] = {"WT_A_RPG", "WTU_A_RPG", "WTD_A_RPG"},
- [-1474608608] = {"WT_A_TANK", "WTU_A_TANK", "WTD_A_TANK"},
- [527765612] = {"WT_A_SPACERKT", "WTU_A_SPACERKT", "WTD_A_SPACERKT"},
- [-165357558] = {"WT_A_PLRLSR", "WTU_A_PLRLSR", "WTD_A_PLRLSR"},
- [-1372674932] = {"WT_A_ENMYLSR", "WTU_A_ENMYLSR", "WTD_A_ENMYLSR"},
- [`weapon_knife`] = {"WT_KNIFE", "WTU_KNIFE", "WTD_KNIFE"},
- [`weapon_nightstick`] = {"WT_NGTSTK", "WTU_NGTSTK", "WTD_NGTSTK"},
- [`weapon_hammer`] = {"WT_HAMMER", "WTU_HAMMER", "WTD_HAMMER"},
- [`weapon_bat`] = {"WT_BAT", "WTU_BAT", "WTD_BAT"},
- [`weapon_crowbar`] = {"WT_CROWBAR", "WTU_CROWBAR", "WTD_CROWBAR"},
- [`weapon_golfclub`] = {"WT_GOLFCLUB", "WTU_GOLFCLUB", "WTD_GOLFCLUB"},
- [`weapon_rammed_by_car`] = {"WT_PIST", "WTU_PIST", "WTD_PIST"},
- [`weapon_run_over_by_car`] = {"WT_PIST", "WTU_PIST", "WTD_PIST"},
- [`weapon_assaultsmg`] = {"WT_SMG_ASL", "WTU_SMG_ASL", "WTD_SMG_ASL"},
- [`weapon_bullpupshotgun`] = {"WT_SG_BLP", "WTU_SG_BLP", "WTD_SG_BLP"},
- [`weapon_pistol50`] = {"WT_PIST_50", "WTU_PIST_50", "WTD_PIST_50"},
- [`weapon_bottle`] = {"WT_BOTTLE", "WTU_BOTTLE", "WTD_BOTTLE"},
- [`weapon_gusenberg`] = {"WT_GUSENBERG", "WTU_GUSENBERG", "WTD_GUSENBERG"},
- [`weapon_snspistol`] = {"WT_SNSPISTOL", "WTU_SNSPISTOL", "WTD_SNSPISTOL"},
- [`weapon_vintagepistol`] = {"WT_VPISTOL", "WTU_VPISTOL", "WTD_VPISTOL"},
- [`weapon_dagger`] = {"WT_DAGGER", "WTU_DAGGER", "WTD_DAGGER"},
- [`weapon_flaregun`] = {"WT_FLAREGUN", "WTU_FLAREGUN", "WTD_FLAREGUN"},
- [`weapon_heavypistol`] = {"WT_HEAVYPSTL", "WTU_HEAVYPSTL", "WTD_HEAVYPSTL"},
- [`weapon_specialcarbine`] = {"WT_RIFLE_SCBN", "WTU_RIFLE_SCBN", "WTD_RIFLE_SCBN"},
- [`weapon_musket`] = {"WT_MUSKET", "WTU_MUSKET", "WTD_MUSKET"},
- [`weapon_firework`] = {"WT_FWRKLNCHR", "WTU_FWRKLNCHR", "WTD_FWRKLNCHR"},
- [`weapon_marksmanrifle`] = {"WT_MKRIFLE", "WTU_MKRIFLE", "WTD_MKRIFLE"},
- [`weapon_heavyshotgun`] = {"WT_HVYSHOT", "WTU_HVYSHOT", "WTD_HVYSHOT"},
- [`weapon_proxmine`] = {"WT_PRXMINE", "WTU_PRXMINE", "WTD_PRXMINE"},
- [`weapon_hominglauncher`] = {"WT_HOMLNCH", "WTU_HOMLNCH", "WTD_HOMLNCH"},
- [`weapon_hatchet`] = {"WT_HATCHET", "WTU_HATCHET", "WTD_HATCHET"},
- [`weapon_railgun`] = {"WT_RAILGUN", "WTU_RAILGUN", "WTD_RAILGUN"},
- [`weapon_combatpdw`] = {"WT_COMBATPDW", "WTU_COMBATPDW", "WTD_COMBATPDW"},
- [`weapon_knuckle`] = {"WT_KNUCKLE", "WTU_KNUCKLE", "WTD_KNUCKLE"},
- [`weapon_marksmanpistol`] = {"WT_MKPISTOL", "WTU_MKPISTOL", "WTD_MKPISTOL"},
- [`weapon_bullpuprifle`] = {"WT_BULLRIFLE", "WTU_BULLRIFLE", "WTD_BULLRIFLE"},
- [`weapon_machete`] = {"WT_MACHETE", "WTU_MACHETE", "WTD_MACHETE"},
- [`weapon_machinepistol`] = {"WT_MCHPIST", "WTU_MCHPIST", "WTD_MCHPIST"},
- [`weapon_flashlight`] = {"WT_FLASHLIGHT", "WTU_FLASHLIGHT", "WTD_FLASHLIGHT"},
- [`weapon_dbshotgun`] = {"WT_DBSHGN", "WTU_DBSHGN", "WTD_DBSHGN"},
- [`weapon_compactrifle`] = {"WT_CMPRIFLE", "WTU_CMPRIFLE", "WTD_CMPRIFLE"},
- [`weapon_switchblade`] = {"WT_SWBLADE", "WTU_SWBLADE", "WTD_SWBLADE"},
- [`weapon_revolver`] = {"WT_REVOLVER", "WTU_REVOLVER", "WTD_REVOLVER"},
- [`weapon_autoshotgun`] = {"WT_AUTOSHGN", "WTU_AUTOSHGN", "WTD_AUTOSHGN"},
- [`weapon_battleaxe`] = {"WT_BATTLEAXE", "WTU_BATTLEAXE", "WTD_BATTLEAXE"},
- [`weapon_compactlauncher`] = {"WT_CMPGL", "WTU_CMPGL", "WTD_CMPGL"},
- [`weapon_minismg`] = {"WT_MINISMG", "WTU_MINISMG", "WTD_MINISMG"},
- [`weapon_pipebomb`] = {"WT_PIPEBOMB", "WTU_PIPEBOMB", "WTD_PIPEBOMB"},
- [`weapon_poolcue`] = {"WT_POOLCUE", "WTU_POOLCUE", "WTD_POOLCUE"},
- [`weapon_wrench`] = {"WT_WRENCH", "WTU_WRENCH", "WTD_WRENCH"},
- [`weapon_cougar`] = {"WT_RAGE"},
- [-159960575] = {"WT_VEH_WEP"},
- [`weapon_pistol_mk2`] = {"WT_PIST2", "WTU_PIST2", "WTD_PIST2"},
- [`weapon_smg_mk2`] = {"WT_SMG2", "WTU_SMG2", "WTD_SMG2"},
- [`weapon_heavysniper_mk2`] = {"WT_SNIP_HVY2", "WTU_SNIP_HVY2", "WTD_SNIP_HVY2"},
- [`weapon_combatmg_mk2`] = {"WT_MG_CBT2", "WTU_MG_CBT2", "WTD_MG_CBT2"},
- [`weapon_assaultrifle_mk2`] = {"WT_RIFLE_ASL2", "WTU_RIFLE_ASL2", "WTD_RIFLE_ASL2"},
- [`weapon_carbinerifle_mk2`] = {"WT_RIFLE_CBN2", "WTU_RIFLE_CBN2", "WTD_RIFLE_CBN2"},
- [`weapon_pumpshotgun_mk2`] = {"WT_SG_PMP2", "WTU_SG_PMP2", "WTD_SG_PMP2"},
- [`weapon_specialcarbine_mk2`] = {"WT_SPCARBINE2", "WTU_SPCARBINE2", "WTD_SPCARBINE2"},
- [`weapon_snspistol_mk2`] = {"WT_SNSPISTOL2", "WTU_SNSPISTOL2", "WTD_SNSPISTOL2"},
- [`weapon_marksmanrifle_mk2`] = {"WT_MKRIFLE2", "WTU_MKRIFLE2", "WTD_MKRIFLE2"},
- [`weapon_revolver_mk2`] = {"WT_REVOLVER2", "WTU_REVOLVER2", "WTD_REVOLVER2"},
- [`weapon_bullpuprifle_mk2`] = {"WT_BULLRIFLE2", "WTU_BULLRIFLE2", "WTD_BULLRIFLE2"},
- [`weapon_doubleaction`] = {"WT_REV_DA", "WTU_REV_DA", "WTD_REV_DA"},
- [`weapon_stone_hatchet`] = {"WT_SHATCHET", "WTU_SHATCHET", "WTD_SHATCHET"},
- }
- function GetWeaponLabelFromHash(weaponHash)
- return WeaponHashToLabel[weaponHash] ~= nil and WeaponHashToLabel[weaponHash][1] or nil
- end
- function GetWeaponLabelUppercaseFromHash(weaponHash)
- return WeaponHashToLabel[weaponHash] ~= nil and WeaponHashToLabel[weaponHash][2] or nil
- end
- function GetWeaponDescriptionLabelFromHash(weaponHash)
- return WeaponHashToLabel[weaponHash] ~= nil and WeaponHashToLabel[weaponHash][3] or nil
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement