Custom F4 Issue

I made a custom F4 menu and I’m having trouble handling jobs that require a vote. For all other jobs I’ve just been saying: when the button is pressed the player says /whateverjob. But for mayor, swat, etc. this will not work.

What command is it to start a vote for said job?

I think it was /votemayor /votecop etc.

It is indeed what Netheous said. If a job requires a vote, the correct command to become that job is /vote<name of the original command>. Note, this is without a space.

Thank you! I was putting a space in it. Perfect.