Installation

To start using the rd-lockers script, you need to ensure that its dependencies are properly set up. This script requires the following dependencies: QBCore qb-menu qb-target Once these dependencies are installed and configured correctly, you will need to run the provided SQL queries to set up the necessary database tables. The following SQL will create two tables in your database: rd_lockers and rd_props. Here are the SQL queries to run:

sql
CREATE TABLE IF NOT EXISTS rd_lockers (
    id INT AUTO_INCREMENT PRIMARY KEY,
    locker_id VARCHAR(50) NOT NULL UNIQUE,
    owner_cid VARCHAR(50) NOT NULL,
    paid BOOLEAN DEFAULT FALSE
);
CREATE TABLE IF NOT EXISTS rd_props (
    id INT AUTO_INCREMENT PRIMARY KEY,
    model VARCHAR(255) NOT NULL,
    x FLOAT NOT NULL,
    y FLOAT NOT NULL,
    z FLOAT NOT NULL,
    heading FLOAT NOT NULL
);

Run the script by adding ensure rd-lockers in your cfg

Last updated