• Get client-sided gamemode
    1 replies, posted
So i want to get the active gamemode chosen by the client in the menu (bottom right). Ive tried using GAMEMODE.Name & gmod.GetGamemode() client sided, but it seems to be the same thing given by the server (happens when playing a gamemode you don't have registered). Thanks in advance for any help. Heres a pic of what im going on about(the pic shows what shouldnt be returned [img]http://i.imgur.com/xM044nB.png[/img]
[CODE] print( engine.ActiveGamemode() ) [/CODE] [CODE] hook.Add( "Initialize", "check_gamemode", function() if not engine.ActiveGamemode() == "terrortown" then chat.AddText( Color( 255, 0, 0 ), "Press escape, and on the bottom right, select TTT as your active gamemode. This will fix issues with missing textures" ) end end ) [/CODE]
Sorry, you need to Log In to post a reply to this thread.