In ${\mathbb F}_p^n$, $p$ prime one may define a weight function on vectors in various ways such as Hamming, or Lee weight. (These two weights correspond nicely to the respective distances from $\bar 0$.)
If ${\mathbb F}_p =\{ 0,1, \ldots,p-1\}$ then one could alternatively (perhaps naively) define a weight function $\omega$ as the integer sum of coordinate entries: $$\omega(\bar{x}) =x_1+x_2+\ldots +x_n \;\;\;\;\;\;\;\text{(integer addition)}. $$ I suspect that this "checksum" type weight must have a name but cannot seem to find a reference.
Literature references would be most appreciated.