• My custom gamemode I made is not showing up.
    0 replies, posted
Well, basically i downloaded the updated skeleton gamemode for gmod 13 and started to make my own gamemode while following a tutorial. I went in-game to see if it worked, and sure enough, it did. So I closed my game to add some more functions, strings, etc. I started my game back up again making sure to put the updated gamemode folder in my garrysmod>garrysmod>gamemodes folder and what do you know, it is not showing up when I click sandbox in-game on the bottom right hand corner. All I see is "Sandbox/TTT". So i made closed my game to check my init.lua file had no coding bugs/errors and all was okay. I relaunched my game and still no luck with the gamemode showing up. So I re-downloaded the updated skeleton gamemode and just dragged in the fresh unedited skelton gamemode into my gamemodes folder and it still didn't pop up in the bottom right hand corner in game, i even deleted all of the other gamemodes besides TTT, sandbox, and Base. So, i went to the extent of copying and pasting the default sandbox gamemode and changing the file name to "sandbox 2" and after another restart, no luck once again. I have no idea what i did to break it but i am really confused. If anybody could give me a hint on what i did wrong on my code or what I should do to fix my gamemodes folder/game. Thanks in advance. Here is my init.lua by the way, every other file/.lua is unedited also. [CODE]AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) function GM:PlayerInitialSpawn( ply ) ply:SetGravity ( 1 ) ply:SetMaxHealth( 100, true ) ply:Give( "weapon_crowbar" ) ply:Give( "weapon_Ar2" ) ply:Give( "weapon_357" ) ply:Give( "weapon_physgun" ) ply:SetWalkSpeed( 250 ) ply:SetRunSpeed ( 350 ) end function GM:PlayerSpawn( ply ) self.BaseClass:PlayerSpawn( ply ) ply:SetGravity ( 1 ) ply:SetMaxHealth( 100, true ) ply:Give( "weapon_crowbar" ) ply:Give( "weapon_Ar2" ) ply:Give( "weapon_357" ) ply:Give( "weapon_physgun" ) ply:SetWalkSpeed( 250 ) ply:SetRunSpeed ( 350 ) end function GM:PlayerLoadout( ply ) end function GM:PlayerInitialSpawn( ply ) ply:PrintMessage( HUD_PRINTTALK, "Welcome, " .. ply:Name() .. "!" ) end [/CODE]
Sorry, you need to Log In to post a reply to this thread.