Ulysses Stuff > Releases

sui_scoreboard with UTime and Steam Avatars

<< < (18/34) > >>

krooks:
Thanks for the help even without gmod installed, i will mess with it a little bit and post back if i have any solutions

JamminR:
May try using GM.Name instead of GAMEMODE.Name . Seems looking over the wiki, I found an article explaining a global table (which "Name" would be a part of) gets loaded into GM. http://wiki.garrysmod.com/?title=Internal_gamemode_workings
(Though, later on it also mentions GAMEMODE table.
Megiddo, feel free to instruct me here. Why isn't my suggested line working? :P

krooks:
I just gave GM.Name a try, no dice

JamminR:
I found a function called Gmod.GetGameMode on the wiki. However, even it says the command is redundant as "GAMEMODE.Name" should contain the name.
So, let's see if there is a metatable issue (with Gmod or your server/gamemode), or a screw up in my code example.
Go to your server console, run the following. It should say Sandbox. If it does, means it's probably my syntax someway somehow.

--- Code: ---lua_run print(GAMEMODE.Name)

--- End code ---
If that fails, try

--- Code: ---lua_run print(GM.Name)

--- End code ---
Let me know if either return data, and if so, what they return.

Megiddo:
GM is only loaded into the globals if your code is located in the gamemode files, I believe. Otherwise, you need to use GAMEMODE. (If I remember correctly!)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version