Garry's Mod

Garry's Mod

Not enough ratings
Jertz's Laws Menu
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
7.156 KB
Jul 1, 2016 @ 10:49am
Oct 21, 2016 @ 9:17am
7 Change Notes ( view )

Subscribe to download
Jertz's Laws Menu

In 1 collection by Jertz
Jertz test pack
7 items
Description
Very customizable Law Menu for DarkRP which can be opened at any time to view the current laws, and with easy controls for the Mayor to add laws, remove them etc. The default command to open the law menu is "/laws".

Comes with in-game settings for the owner to be able to change colors, notifications, sounds which will be saved in the data folder.

In addons/jertzlaws/lua/jl_settings.lua there's additional settings where you can for example restrict which ranks have access to the in-game menu, which command opens the laws, change the notification sound and also the ability to fully translate the menus to a different language. The in-game settings are stored in one text file located at data/jertzlaws/panelcolors.txt.

If you come across any problems, reply to the comments on this page.

How to Install:

1. Subscribe to the addon
2. Add the addon to your server's collection which has been set to run in your start.bat
3. Create or modify existing located at lua\autorun\server\workshop.lua and add a line resource.AddWorkshop("715049979")
4. Now when you launch your server, the addon will be automatically downloaded to your server as .gma file in your addons folder.

If you want to change in-depth settings other than which are available in-game, you need to extract the .gma file with GMAD Extractor and change them in lua/jl_settings.lua
Popular Discussions View All (1)
5
Oct 5, 2016 @ 2:27pm
Bug Report
Antoine 🍁
10 Comments
Jertz  [author] Feb 15, 2021 @ 1:05pm 
Unfortunately I'm no longer really developing for Garry's Mod so I can't help with the feature requests. I've uploaded the source code on GitHub if anyone needs it for bug fixes and alike. https://github.com/Jertzukka/jertzlaws
ieatyoulol Feb 15, 2021 @ 11:06am 
Could you add an option to keep the laws box up as part of the HUD?
9Rounds Dec 5, 2017 @ 4:20am 
oh ok
Jertz  [author] Dec 5, 2017 @ 4:10am 
This addon doesn't manage default laws, just uses the ones given by DarkRP gamemode. Change them in addons/darkrpmodification/lua/darkrp_config/settings.lua and change the "GM.Config.DefaultLaws".
9Rounds Dec 5, 2017 @ 1:56am 
can i delete defualt laws?
Wareb Aug 7, 2016 @ 9:56am 
Lol yes my server is running on darkrp
Jertz  [author] Aug 7, 2016 @ 9:27am 
This addon is only to be used with DarkRP gamemode, based on your error your server isn't running it. :steammocking:
Wareb Aug 7, 2016 @ 8:47am 
When I try to open the menu I have this error :


[ERROR] addons/menu/lua/client/cl_laws.lua:192: attempt to call field 'getLaws' (a nil value)
1. RefreshLaws - addons/menu/lua/client/cl_laws.lua:192
2. func - addons/menu/lua/client/cl_laws.lua:801
3. unknown - lua/includes/extensions/net.lua:32

Jertz  [author] Aug 7, 2016 @ 3:40am 
Mentioned problem fixed. :steamhappy:
Antoine 🍁 Aug 6, 2016 @ 6:03pm 
Delete the fact that when the mayor adds laws that panel that displays wholes laws do not open because when you're in a plateau some PR work this problem.