Anyone Got A Max Armor Function?

There is a :SetMaxHealth code in GMod that sets how high a player’s health can go, but there isn’t one for armor. Does anyone have a script for that?

Armor can only go up to 255 max, that’s a limit set in the game. If you want to get around it you’ll need to write your own armor system.

or just detour ply:SetArmor()

http://images.akamai.steamusercontent.com/ugc/495771087094863105/831008E1664C48B6BCDFE6B753FF0D603B38E50F/

Is there a way to set the cap under 255? Like after 50 armor, a player can no longer gain armor?

as robbo said… detour ply:SetArmor()