Gun lag

In gmod, whenevr i fire a shotgun or machine gun, my comp lags like hell.

Is there any code to fix this?

Could you post your specs?