Garry's Mod Wiki


number game.GetSkillLevel()


Returns the difficulty level of the game.

TIP: You can use this function in your scripted NPCs or Nextbots to make them harder, however, it is a good idea to lock powerful attacks behind the highest difficulty instead of just increasing the health.

Internally this is tied to the gamerules entity, so you'll have to wait to wait until GM:InitPostEntity is called to return the skill level


1 number
The difficulty level, Easy( 1 ), Normal( 2 ), Hard( 3 ).

Page Links

Special Pages



Render Time: 77ms

DB GetPage 46
Generate Html 3
SaveChanges (1) 13
Render Body 0
Render Sidebar 14