Garry's Mod Leaks
Permanent Lawboards [DarkRP]
Submitted by rickharrisonxx, 19-07-2017, 07:25 PM, Thread ID: 41023
Thread Closed
This is a small and simple addon that allows you place lawboards that automatically will spawn once the server starts.
Functionality
How to install
Configuration
How to use
Console commands
Functionality
- Lawboard that spawns on server startup with the default laws(configured in DarkRP).
- Mayor can still place his own lawboards and they will not in any way interfere with the permanent lawboards.
- If the mayor adds a law, it'll be shown on the permanent lawboard too.
- Functions exactly like the regular lawboards except that they're permanent.
How to install
- Open the .zip file with Winrar(or a program like it)
- Place the PermanentLawboards folder in your garrysmod/addons folder(on the server)
- Restart your server, and it's done!
Configuration
- There's only one setting, and that is the usergroups that are allowed to use the console commands(to save the lawboards).
- This is set at PermanentLawboards/autorun/lua/server/sv_permanentlawboard.lua
- The very first line looks like this:
- local _cmdAccess = { "superadmin", "admin" };
- Simply place each rank inside.
How to use
- Open the Q menu, go to Entities > William's Items and spawn as many Lawboards you want.
- Place the lawboards anywhere.
- Once satisfied with their placement, simply type SaveLawboards in your console.
Console commands
- saveLawboards = finds each permanent lawboard on the map and saves them.
- spawnLawboards = if for some reason the lawboards are removed, you can respawn them by typing this instead of changinglevel/restarting.
Users browsing this thread: