Welcome to the PD-Drivingschool installation guide, here you can learn how to completely install our asset, following each step we will achieve a clean and fluid installation where you will not find any problems, as long as the documentation has been completed in full.
Asset download
To find the asset, you must have made the purchase using your own keymaster account. Otherwise, you can use the transfer system to move the asset to a different keymaster account.
Once the purchase is made on our official website, you will receive your asset directly in your , in your own panel you can download the asset and install it following the following documentation.
Asset dependencies
This asset has some dependencies that are completely mandatory and important for the operation of the asset. If you do not have these dependencies, your asset will probably start and have some error or message in its command console.
In your localhost database you must execute this sql.
CREATE TABLE `drivingschool` (
`id` int(11) NOT NULL,
`identifier` varchar(255) NOT NULL,
`drivinglicenses` text DEFAULT NULL,
`typeofpermit` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `available_instructors` (
`id` int(11) NOT NULL,
`identifier` varchar(46) DEFAULT NULL,
`available` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Configuration
Configure the scripts to your server needs
Config = Config or {};
--[[
Framework configuration and tools of your server!
Please choose from the following options:
Framework:
'ESX'
'QBCORE'
Target:
'ox_target'
'qb-target'
Notify:
'QBCore'
'ESX'
'OkOk'
'mythic_notify'
'cdev_notify'
]]
Config.Framework = 'ESX' -- You can change to 'QBCORE' or 'ESX'
Config.Target = "ox_target" -- 'ox_target', 'qb-target'
Config.Notify = 'ESX'
Config.JobName = "drivingschool" -- By default if you want change to your likings.
--[[
Select the prices of the permits.
]]
Config.PermitPrices = {
["Passenger Cars"] = 500,
["Motorcycles"] = 500,
["Taxi and Livery"] = 500,
["Commercial License"] = 500,
["Driving Book"] = 50,
}
--[[
Select the percentage that the player needs to reach in order to past the test.
]]
Config.PassScore = 75;
Framework Modifications
For QBCore
Install the items in your qb-core/shared/items.lua