Master Mind Development
DiscordTebexGithub
  • ๐Ÿ’ฐPaid Release
    • ๐Ÿ“ฆAirdrop
      • โคต๏ธInstallation
        • ๐Ÿ‘œAdd Item
      • ๐Ÿ“’Configuration
        • ๐Ÿ’ชCore
        • ๐Ÿ‘œInventory
        • ๐Ÿ‘€Target
        • ๐ŸŽฎMinigame
      • ๐Ÿ‘จโ€๐Ÿ’ปCustomization
        • ๐Ÿ”ฅExplosive Crate
        • ๐Ÿ“งMail
    • ๐ŸŽ๏ธDealership
      • โคต๏ธInstallation
        • ๐Ÿ‘œAdd Item
        • ๐Ÿ‘จโ€๐Ÿ’ปInitializing/Configuration
        • ๐Ÿ“ธGenerate Vehicle Images
      • ๐Ÿ“’Configuration
        • ๐Ÿ’ชCore
        • ๐Ÿ‘œInventory
        • ๐Ÿ‘€Target
        • ๐Ÿ““Miscellaneous
      • ๐ŸฌHow to Add Custom Shop
      • โš ๏ธImportant Notes
  • ๐ŸŽFREE RELEASE
    • ๐Ÿ“ปRadio
      • โคต๏ธInsallation
        • ๐ŸŒ‰Bridge Setup
        • ๐Ÿ‘œAdd Item
        • ๐Ÿ‘จโ€๐Ÿ’ปHow to build svelte ui file?
      • ๐Ÿ“’Configuration
        • ๐Ÿ—ผJammer System
        • ๐Ÿ”‹Battery
        • ๐Ÿ“ปChannel Name
        • ๐Ÿ“ปRestricted Radio Channel
      • ๐Ÿ‘จโ€๐Ÿ’ปExports
      • ๐Ÿ’ปBranch
    • ๐Ÿ”‘Car Keys
      • โคต๏ธInstallation
        • ๐Ÿ‘œAdd Item
      • ๐Ÿ“’Configuration
        • ๐Ÿ’ชCore
        • ๐Ÿ‘œInventory
        • ๐Ÿ‘œStack Key
      • ๐Ÿ‘จโ€๐Ÿ’ปUseful Exports
Powered by GitBook
On this page
  • Step 1: Drag and Drop
  • Step 2: Run the SQL on base folder
  • Step 3: Start the script
  • Step 4: Start the Server
  1. Paid Release
  2. Dealership

Installation

Guide on how to install dealership script

Last updated 1 year ago

Step 1: Drag and Drop

Download both the script from and place it your server script folder 1. mm_dealership 2. dealership_addon

Step 2: Run the SQL on base folder

CREATE TABLE IF NOT EXISTS `player_vehicles` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `license` varchar(50) DEFAULT NULL,
    `citizenid` varchar(50) DEFAULT NULL,
    `vehicle` varchar(50) DEFAULT NULL,
    `hash` varchar(50) DEFAULT NULL,
    `mods` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
    `plate` varchar(15) NOT NULL,
    `fakeplate` varchar(50) DEFAULT NULL,
    `garage` varchar(50) DEFAULT 'pillboxgarage',
    `fuel` int(11) DEFAULT 100,
    `engine` float DEFAULT 1000,
    `body` float DEFAULT 1000,
    `state` int(11) DEFAULT 1,
    `depotprice` int(11) NOT NULL DEFAULT 0,
    `drivingdistance` int(50) DEFAULT NULL,
    `status` text DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `plate` (`plate`),
    KEY `citizenid` (`citizenid`),
    KEY `license` (`license`)
) ENGINE=InnoDB AUTO_INCREMENT=1;


CREATE TABLE IF NOT EXISTS `vehicle_stock` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vehicle` varchar(50) DEFAULT NULL,
  `stock` int(11) DEFAULT NULL,
  `price` int(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1;


ALTER TABLE `player_vehicles`
ADD UNIQUE INDEX UK_playervehicles_plate (plate);

ALTER TABLE `player_vehicles`
ADD CONSTRAINT FK_playervehicles_players FOREIGN KEY (citizenid)
REFERENCES `players` (citizenid) ON DELETE CASCADE ON UPDATE CASCADE;

ALTER TABLE `player_vehicles`
ADD COLUMN `globals` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL;

Step 3: Start the script

Ensure the script in server.cfg

ensure mm_dealership
ensure dealership_addon #temporary script

Step 4: Start the Server

๐Ÿ’ฐ
๐ŸŽ๏ธ
โคต๏ธ
keymaster