💻Installation Guide
DMV School Script Installation Guide
This page is dedicated to installation of our dmv school script. Follow steps listed below to start using pScripts DMV School on your server.
Prerequisities
Before you begin, ensure you have:
FiveM server with administrator access
Access to your server's database
File transfer capability (FTP or direct file access)
Step 1: Installing the dependencies
Our script requires 3 dependencies:
Additionaly, we recommend you use MariaDB as your Database Management System.
Step 2: Setting up the Database
For our script to work, you need to modify your database. Run these SQL commands:
CREATE TABLE `p_dmv_schools` (
`name` varchar(60) NOT NULL,
`label` varchar(60) NOT NULL,
`type` varchar(10) NOT NULL,
`blipSprite` int(5) NOT NULL,
`blipColor` int(5) NOT NULL,
`mainCoords` longtext NOT NULL,
`theoryQuestions` longtext NOT NULL DEFAULT '[]',
`practiceMap` longtext NOT NULL DEFAULT '[]',
`start` longtext NOT NULL DEFAULT '[]',
`tasks` longtext NOT NULL DEFAULT '[]'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
ALTER TABLE `p_dmv_schools`
ADD PRIMARY KEY (`name`);
COMMIT;
You can run these on your preferred Database Management Tool (ex. HeidiSQL, phpMyAdmin etc.)
Step 3: Downloading the Script
Download the script from your Keymaster.
Extract the files to your resources (or any other preffered) folder.
Add the following line to your
server.cfg
ensure p_dmvschool
Step 4: Configuration
Open
config.lua
file in the Script folderConfigure our script basing on your needs.
Step 6: Start using our script
Save all changes
Restart / Start your FiveM server
Step 7: Setup Schools
Use command
/createDmvSchool
to open creator. You can set name, label, type and much more in this menu.After creating school, you can use command
/editTheory [schoolName]
to setup questions for theory test.
Remember to use unique school name setuped in creator instead of [schoolName] in command!
When u finish setuping theory test, you start setup practice test map by command
/editPracticeMap [schoolName]
it will open a map creatorAt the end, you need to setup practice test tasks. Use command /editTasks [schoolName] it will open a Task Editor Menu where you can setup all tasks on practice test. Remember you can also create custom tasks in config file if u are experienced.
When u finish creating school, make sure to restart the script to load everything properly.
Enjoy using your brand new pScripts DMV School 🎉
Last updated