Hide luck stat from the player?

I already know that if you set all your character and enemies' luck to 0 it won't affect anything, but, since it's a useless stat, how do I hide it from the player?
Welcome!

RPG Maker MZ does this differently than MV did, so here's how you'd hide parameters in the menu in this engine.

Paste the below into a text editor, save as a *.js file, include as a plugin.

Code:
Window_StatusParams.prototype.drawItem = function(index) {
    const rect = this.itemLineRect(index);
    const paramId = index + 2;

// Modify the below number to skip the desired parameter
    if (paramId == 7)
        return;

    const name = TextManager.param(paramId);
    const value = this._actor.param(paramId);
    this.changeTextColor(ColorManager.systemColor());
    this.drawText(name, rect.x, rect.y, 160);
    this.resetTextColor();
    this.drawText(value, rect.x + 160, rect.y, 60, "right");
};

The parameter ID is the order they're shown in on the Class tab of the database, starting with 0. So Luck is 7.

If anyone wanted to skip more than one, you'd use || for OR. e.g.
Code:
if (paramId == 7 || paramId == 4)
it worked, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/hide-luck-stat-from-the-player.170644/