I need help | WILL POSSIBLY PAY IF WORKS

I have been working on my server for 4 days nonstop… It has Gamemode Voting at the end, but i want to remove that. (Deathrun)
Doing fretta_voting 0 doesn’t work. Please just tell me how to do this step by step.
You will be rewarded.

Okay,

I presume the deathrun you have is a fretta gamemode. If so, remove any other gamemodes in the gamemodes folder except for Deathrun, Base and Sandbox. Then try :wink:

Sorry, but that’s sooo stupid. That doesn’t affect the voting, just whatever gametypes are gonna show up… I need to stop the entire GM Voting.

Where did you get the gamemode? Might be easier if facepunch knows what the code you’re using looks like.

Just stick this in the shared.lua gamemode file, it should stop the entire gamemode voting, and just skip to the deathrun map voting:

[lua]
function GM:StartFrettaVote()
if GAMEMODE.m_bVotingStarted or GAMEMODE:InGamemodeVote() then return end

GAMEMODE.WinningGamemode = "deathrun"

SetGlobalBool("InGamemodeVote", true)

GAMEMODE.m_bVotingStarted = true

GAMEMODE:ClearPlayerWants()
  
GAMEMODE:StartMapVote()

end

GM.StartGamemodeVote = GM.StartFrettaVote
[/lua]

We tried adding that into the deathrun’s shared.lua, but it didn’t work…
What do we do, step by step?

  1. Open DeathRun’s gamemode folder
  2. Open the shared.lua in it.
  3. Paste that code at the bottom of it. (1 line space)
  4. Realise how easy this was.

That actually just screwed my game up…

forgot to add end;
?