Garry's Mod

Garry's Mod

28 ratings
Topher's Level System
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
Updated
3.333 KB
20 May, 2019 @ 9:19pm
20 May, 2019 @ 10:27pm
5 Change Notes ( view )

Subscribe to download
Topher's Level System

Description
A good Level system with many features.

Features:
- Advanced HUD
- Customisable HUD position
- Prestige feature
- ULX commands
- XP bonus for usergroups (ULX, FAdmin & ServerGuard)
- Customisable XP Amount and Duration


Server ConVars:
- "topher_levelsystem_xptime" - Duration between XP given (Must be greater than 5 or it will break)

- "topher_levelsystem_xpamount" - Amount of XP given each interval

- "topher_levelsystem_hud" - Toggles HUD on or off
0 - Don't show HUD
1 - Show HUD

- "topher_levelsystem_hud_xpos" - Position of the HUD across the screen (0-100
0 - Far left
100 - Far right

- "topher_levelsystem_hud_ypos" - Position of the HUD down the screen (0-100
0 - Top
100 - Bottom


Client Console Commands:
- "topher_levelsystem_xpbonus" - Set XP bonus for a Usergroup
- Usage: "topher_levelsystem_xpbonus user 1"
- Multiples the XP amount by the second argument

- "prestige" - The equivalent of pressing the prestige button in the case that you can't


Lua Functions:
- Player:GetLevel()
- Returns a players Level

- Player:GetPrestige()
- Returns a players prestige

- Player:GiveXp(Amount)
- Gives a player XP (Server only)


If you have any suggestions feel free to comment them below!
17 Comments
Squid's Doggy 🦑 29 Jun @ 12:52pm 
Broken
Rolf Strid Skjold 28 May, 2022 @ 5:57am 
I'm getting errors in my console when loading A sandbox map:

[Topher's Level System] lua/includes/extensions/string.lua:88: bad argument #1 to 'string_len' (string expected, got nil)
1. string_len - [C]:-1
2. Explode - lua/includes/extensions/string.lua:88
3. unknown - lua/autorun/sh_level_core.lua:34
blazphemur 22 Dec, 2021 @ 11:42am 
SAM Support?
Delycan 27 Nov, 2021 @ 10:52pm 
does it work in Sandbox?
SuP†SaN 11 Nov, 2021 @ 6:32pm 
Script errors, same as "Lucky Fox" has. Seems like you didn't fix that
[PSPTB] iLikePie03 21 Jul, 2019 @ 9:51am 
it doesnt even work it sucks
Topher III  [author] 28 Jun, 2019 @ 12:42am 
ill fix that up, keep on the look out for an update.
Lucky 24 Jun, 2019 @ 3:18am 
[ERROR] lua/ulx/modules/sh/sh_level_ulx.lua:30: attempt to call method 'SetLvl' (a nil value)
1. call - lua/ulx/modules/sh/sh_level_ulx.lua:30
2. __fn - lua/ulib/shared/commands.lua:943
3. execute - lua/ulib/shared/commands.lua:1323
4. unknown - lua/ulib/shared/commands.lua:1351
5. unknown - lua/includes/modules/concommand.lua:54

all commands ulx
Topher III  [author] 23 Jun, 2019 @ 7:10pm 
could you send through the error?