You should already know how to lock you mod toggleable options thanks to my related tutorials but still, let's review it once more to consolidate your knowledge it doesn't hurt!
Here is my own current lock that I made this morning. I wanted only 4 options out the 5 to be locked with the hat still toggleable. I attached the screenshots before and after the .ini file modifications. Remember the mod needs a refresh before it works as intended. (Cut it/paste it outside the mod folder, press F10 in game or restart the game, cut it/paste it back where it was)
If you're new to this, please learn to do it step by step with my mod tutorials. If you're feeling lazy or want it fast right now I attached my edited .ini file below that post. Download it and replace it in the folder at this path :
\AppData\Roaming\XXMI Launcher\WWMI\Mods\Shiroho Radiant Qiuyuan - UltimateVersion\Shiroho Radiant Qiuyuan - Character
And you can modify it further if you want another configuration.
What's valuable to learn today for my veterans is that this modified part of the ini. file can be straight copy/pasted on a newer version if someday I update the mod and you loose your lock modifications. It's possible because the variables won't probably change much unless I added another toggle. That way you won't have to do the whole process again each time there is a breaking update.
The part to retain usually goes from "; Mod State -------------------------" to "[Present]"
I hope I taught you something here or at least confirmed your grasp of this precious method.