[B]Description:[/B]
Tired of looking for law boards to check out the laws? Well, now you don't have too anymore! Just type /laws and a menu will come up with all of the laws you need.
[B]Features:[/B]
- Simple looking design.
- Easy to use.
- Mayor gets buttons to edit laws.
- Type /laws or /law to open menu, caps don't matter.
- Script will get some really nice updates in the future.
[B]What you need:[/B]
DarkRP (this was tested on 2.5+ but it should work on 2.4)
[B]How to install:[/B]
1. Put the laws_menu in addons folder
2. Configure the simple file in laws_menu/lua/autorun/config.lua
3. Done!
[B]Upcoming Features:[/B]
- List of active warrants
- Sound effects when a button is clicked
- Maybe things suggested by you
[B]Video:[/B]
[video]https://youtu.be/NbOvgmKykp0[/video]
[B]Screenshot:[/B]
Menu as any job except Mayor:
[IMG]https://i.gyazo.com/e94b21393f952b557ac2d43f50032615.png[/IMG]
Menu as Mayor:
[IMG]https://i.gyazo.com/4f3991d1bd49020cadf6541f68c83416.png[/IMG]
[B]Notes:[/B]
- Suggestions are always good!
- I will do my best to provide support. Just post your issue in this thread.
- WARNING: Only supports up to 12 laws. If you can code, add a scroll bar for more. Until I get off my ass, I cannot help you with that.
- This was my first script so excuse me if the code could have been better. I didn't know much at the time. I have a big project that I started working on.
[B]Download:[/B] [URL="https://dl.orangedox.com/65HoJBdQdLb21vwhhx/darkrp_laws_menu.zip"]Download Link[/URL]
-----------------------------------------------------------------------------------------------------------------------------------------------------------
[B][U]Alternate version by _AMD_[/U][/B]
Changes: Improved interface
Screenshot:
[IMG]https://camo.githubusercontent.com/bad563310906aea2f0950efa88501238d4d624db/68747470733a2f2f692e696d6775722e636f6d2f347944664d 49422e706e67[/IMG]
Download: [URL]https://github.com/AMD-NICK/darkrp-laws-menu[/URL]
I have a suggestion, it would be awesome if you made a more streamline menu and made it always on the hud in the top right. I have an idea on how you could make this work if you don't already know but your probably a more experienced programmer than me anyway. Even if you can't achieve the above this is still an awesome addon, thanks for the release :)
Edit: Also you can't download from that link without access please host it somewhere else like mega.co.nz or mediafire, thanks again :)
[QUOTE=Hebster;49144926]I have a suggestion, it would be awesome if you made a more streamline menu and made it always on the hud in the top right. I have an idea on how you could make this work if you don't already know but your probably a more experienced programmer than me anyway. Even if you can't achieve the above this is still an awesome addon, thanks for the release :)
Edit: Also you can't download from that link without access please host it somewhere else like mega.co.nz or mediafire, thanks again :)[/QUOTE]
I'll add the HUD part as an option on the menu. I'll give the user the option to turn it off or on :smile:.
Also, I'm trying to fix the link. I'll send you a private message when it's done and I'll edit my post.
[editline]19th November 2015[/editline]
Link fixed.
You should refresh the panel's content upon a law change, so it doesn't have to be re-opened to see changes.
[QUOTE=mib999;49151734]You should refresh the panel's content upon a law change, so it doesn't have to be re-opened to see changes.[/QUOTE]
Yeah you're right, I'll do it as soon as possible. I have some jobs and a script to finish up first though.
[QUOTE=McSniper12;49143384]
- This was my first script so excuse me if the code could have been better. I didn't know much at the time. I have a big project that I started working on.
[/QUOTE]
So you tried to sell your first sript on scriptfodder? :v:
[url]https://scriptfodder.com/scripts/view/1764[/url]
This is a pure example of why scriptfodder is filled with bad scripts
[QUOTE=Kevlon;49153514]So you tried to sell your first sript on scriptfodder? :v:
[url]https://scriptfodder.com/scripts/view/1764[/url]
This is a pure example of why scriptfodder is filled with bad scripts[/QUOTE]
Haha it was worth a try. Note that it was up for a dollar. Scripts don't have to be godlike, they can be just useful, like mine. Didn't have to make the menu complicated either. And some prople have less experience than others, so yeah. :weeb:
[QUOTE=McSniper12;49154654]Haha it was worth a try. Note that it was up for a dollar. Scripts don't have to be godlike, they can be just useful, like mine. Didn't have to make the menu complicated either. And some prople have less experience than others, so yeah. :weeb:[/QUOTE]
According to your profile, you also do "Lua jobs", oh my.
[QUOTE=Mikey Howell;49167060]According to your profile, you also do "Lua jobs", oh my.[/QUOTE]According to your profile, you know "lua and javascript" and that you are a "developer". Oh my.
[QUOTE=CoreWaffle;49167177]According to your profile, you know "lua and javascript" and that you are a "developer". Oh my.[/QUOTE]
That's me!
[QUOTE=Kevlon;49153514]So you tried to sell your first sript on scriptfodder? :v:
[url]https://scriptfodder.com/scripts/view/1764[/url]
This is a pure example of why scriptfodder is filled with bad scripts[/QUOTE]
I wondered why I remember seeing this script.
I can appreciate your attempt, however, cosmetically a lot more could of been done. The close button is too big, refreshing as someone said, so when laws are updated, they refresh without having to regenerate the panel. The text on the buttons could of been smaller, and it looks like you used a Frame instead of a panel. I'm not a fan of frames, and you could of set the title to blank, and then put a custom font in with a title that's a little bigger and looks nicer. Just suggestions.
[QUOTE=I.AM.Richard;49170649]I wondered why I remember seeing this script.
I can appreciate your attempt, however, cosmetically a lot more could of been done. The close button is too big, refreshing as someone said, so when laws are updated, they refresh without having to regenerate the panel. The text on the buttons could of been smaller, and it looks like you used a Frame instead of a panel. I'm not a fan of frames, and you could of set the title to blank, and then put a custom font in with a title that's a little bigger and looks nicer. Just suggestions.[/QUOTE]
I appreciate what you said, the more feedback, the more I know what I should be doing. Thanks
It looks simple but nice - I like it
Although the padding is a bit inconsistent - for example, the close button looks...maybe 10 pixels from the top of the frame but it's at least double that from the frame's width edge
[QUOTE=NiandraLades;49171767]It looks simple but nice - I like it
Although the padding is a bit inconsistent - for example, the close button looks...maybe 10 pixels from the top of the frame but it's at least double that from the frame's width edge[/QUOTE]
Thanks for the suggestion, I'll make a bunch of improvements as soon as possible :)
[QUOTE=_AMD_;49212362]McSniper, [url]https://github.com/AMD-NICK/darkrp-laws-menu[/url][/QUOTE]
Nice :smile:
You have a different style of coding than me, I like to shove functions inside the net.receive. The style is also different than my taste, but I still like it. I'll put it in my original post.
Would be nice if you had a Hud included that shows up in the top right :3.
Looking for that for a long time, I am gonna use this tho!
[QUOTE=AkiraYasha;49214625]Would be nice if you had a Hud included that shows up in the top right :3.
Looking for that for a long time, I am gonna use this tho![/QUOTE]
I can do that :smile:
Ill see if I have time today
[QUOTE=AkiraYasha;49214625]Would be nice if you had a Hud included that shows up in the top right :3.
Looking for that for a long time, I am gonna use this tho![/QUOTE]
Sorry for the delay, semester is ending and I have 4 exams tomorrow. Update should be live by the end of the year
Sorry, you need to Log In to post a reply to this thread.