How can I hide a job in f4 menu?

I have an NPC for the mayor to be voted in and I want to hide the mayor job from the F4 menu. I want players to use the npc only. Any tips?

If you’re using DarkRP 2.5.0 / 2.5.2, goto your modification addon, and find disabled-defaults.lua
Then in the top of the file, you’ll see all the default jobs listed in a “table” and "= “true” behind I believe it is.
Then just simply find the mayor, and change it to "= “false”

Won’t that disable the job completely?