Installation Guide

Execute the Below in your Database and its all Done!!


Step 1: SQL Modifications

You must execute the SQL code to set up the necessary database tables.

Instructions

  1. Open your database management tool (e.g., phpMyAdmin or HeidiSQL).

  2. Select Your Database.

  3. Run the following SQL query in your database to create the moon_impoundlots table:

CREATE TABLE `moon_impoundlots` (
	`location` VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8mb3_general_ci',
	`owned` INT(11) NULL DEFAULT NULL,
	`owner` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`price` INT(11) NULL DEFAULT NULL,
	`date_purchased` DATE NULL DEFAULT NULL,
	`name` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`money` INT(11) NULL DEFAULT '0',
	`employees` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	PRIMARY KEY (`location`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
;

This table will store impound lot data, including location, ownership, pricing, and employee details.


Step 2: Remove Conflicting Commands

  1. Locate the File: Navigate to: qb/qbx-policejob/server/main.lua

  2. Delete the Following Commands:

    • /depot

    • /impound

  3. Optional: Remove Events If desired, delete the following events to avoid any conflicts:

    • police:client:ImpoundVehicle

    • police:server:Impound


Next Steps

  1. Test the system to ensure there are no conflicts after removing the commands and events.

  2. Integrate your new impound system with your server’s economy or roleplay mechanics for seamless functionality.


Last updated