💻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:

  1. FiveM server with administrator access

  2. Access to your server's database

  3. 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

  1. Download the script from your Keymaster.

  2. Extract the files to your resources (or any other preffered) folder.

  3. Add the following line to your server.cfg

    ensure p_dmvschool

Step 4: Configuration

  1. Open config.lua file in the Script folder

  2. Configure our script basing on your needs.

Step 6: Start using our script

  1. Save all changes

  2. Restart / Start your FiveM server

Step 7: Setup Schools

  1. Use command /createDmvSchool to open creator. You can set name, label, type and much more in this menu.

  2. After creating school, you can use command /editTheory [schoolName] to setup questions for theory test.

  1. When u finish setuping theory test, you start setup practice test map by command /editPracticeMap [schoolName] it will open a map creator

  2. At 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.

We recommend to use /showPracticeMap [schoolName] before starting task setup, this command will show up all objects created in map creator, you can disable it by using same command.

  1. 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