Hello all,
This is my first share and also my first release, I hope you guys like it and can tweak it to become a better resource.
As a disclaimer, I am very new to lua and tried my best to put this together, so credit where credit is due, I will try to credit the authors responsible for the snippets that were used, but feel free to let me know if ive left anything out.
The code has also never been tested on a populated server, so leave a comment if there are any bugs if you decide to use this on your server.
Introduction
The DMV School release is a standalone script that goes through a number of events in order to apply a drivers license to the player. This script does not include any license registry, so before you ask how to show license or register a license after the test? It does not, however it gives you the option to apply this after passing the test.
Events
- Introduction: Takes the player through a brief introduction to the rules and regulations of traffic, quite a must before taking the theory test.
- Theory Test: A UI based form test, you simply click on the right answers and submit them, however you should be careful, the test costs 200$ and money is not refundable if you fail the test.
- Practical Test: A series of events throughout the city, mainly focusing on speed limits based on areas while you keep the vehicle whole without crashing. You will get a number of notification on the screen telling you what to do, there is a chance you can fail this test if you accumulate too many errors during the test.
Requirements
- essentialmode (old one, not the one with couchdb) I will not support couchdb as im not using it myself, sorry.
- Legacy MySQL (This script does not use async, but im sure someone could help convert it, ask in the comments)
- pNotify (This script uses pNotify for the beautiful and easy to use UI notifications, make sure to move and replace this file: noty.css to pNotify > html, all ive done is changed the width of the UI notification that pops up at the center of the screen, so it doesnt look all clustered and ugly with the huge amount of text.)
If youre interested in knowing what Ive changed and want to do it yourself instead of downloading my .css file, here is the adjustment:
#noty_layout__center {
top: 50%;
left: 50%;
width: 625px;
-webkit-transform: translate(-webkit-calc(-50% - .5px), -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);
transform: translate(calc(-50% - .5px), calc(-50% - .5px)) translateZ(0) scale(1, 1); }
Video Demonstration
Link
Download
dmvschool.rar (111.8 KB)
Credits
resources used in this script:
- Roleplay test form by FreddyCorp
- Driver test (used as a framework for the checkpoints) by cr4zzybipbiip