• Making this addon work with custom sweps
    0 replies, posted
Hi, on my f2s stronghold server I have some custom sweps and I was wondering how I would get it to work with this addon: [url]https://garrysmods.org/download/11320/crysis-hud-quick-suit-menu[/url] here is some code that seems relevant: autorun/client/crysishud.lua [code] local weapontab = {} //I love mah tables (don't touch this one) weapontab["Crowbar"] = {} weapontab["Crowbar"].number = "6" //This is the character in the HL2MPTypeDeath font weapontab["Crowbar"].name = "weapon_crowbar" //This is the weapon class name to switch to weapontab["GravityGun"] = {} weapontab["GravityGun"].number = "9" weapontab["GravityGun"].name = "weapon_physcannon" weapontab["PhysicsGun"] = {} weapontab["PhysicsGun"].number = "9" weapontab["PhysicsGun"].name = "weapon_physgun" weapontab["Pistol"] = {} weapontab["Pistol"].number = "-" weapontab["Pistol"].name = "weapon_pistol" weapontab["Revolver"] = {} weapontab["Revolver"].number = "." weapontab["Revolver"].name = "weapon_357" weapontab["SMG"] = {} weapontab["SMG"].number = "/" weapontab["SMG"].name = "weapon_smg1" weapontab["AR2"] = {} weapontab["AR2"].number = "2" weapontab["AR2"].name = "weapon_ar2" weapontab["Shotgun"] = {} weapontab["Shotgun"].number = "0" weapontab["Shotgun"].name = "weapon_shotgun" weapontab["Crossbow"] = {} weapontab["Crossbow"].number = "1" weapontab["Crossbow"].name = "weapon_crossbow" weapontab["Grenade"] = {} weapontab["Grenade"].number = "4" weapontab["Grenade"].name = "weapon_frag" weapontab["RPG"] = {} weapontab["RPG"].number = "3" weapontab["RPG"].name = "weapon_rpg" weapontab["Stunstick"] = {} weapontab["Stunstick"].number = "!" weapontab["Stunstick"].name = "weapon_stunstick" weapontab["SLAM"] = {} weapontab["SLAM"].number = "*" weapontab["SLAM"].name = "weapon_slam" local slots = {} //Standard slots, change these at will slots[1] = weapontab["Crowbar"] slots[2] = weapontab["PhysicsGun"] slots[3] = weapontab["AR2"] slots[4] = weapontab["Shotgun"] slots[5] = weapontab["RPG"] [/code] well, a player will have x1 primary that they chose to equip, x1 secondary they chose to equip, a door module by default, and possibly explosives depending if they equipped any, and a tool gun.
Sorry, you need to Log In to post a reply to this thread.