China is a dictatorship of the proleariat, shouldnt the dictators be armed?

on a more serious note, Marx and many theorists after him talked about how the proletariat being armed is a necessity, why does China has such gun laws?