Instalation

1

Ensure All Dependencies Are Installed

Before proceeding, make sure all required dependencies are installed and configured:

  • ox_lib

  • ox_mysql

  • es_extended or qb-core

  • BHD Bridge

2

Drag and Drop the Files

  1. Download the script from Cfx.re portal

  2. Drag and drop the bhd_garage folder into your resources directory on the server.

3

Edit the Configuration

  1. Open config.lua inside bhd_garage and adjust the settings:

    • Configure garage locations and impound zones.

    • Adjust key permissions and vehicle storage options.

  2. Open config_s.lua for server-specific settings.

4

Add Inventory Items

['carkeys'] = {
	label = 'Car keys',
	weight = 5,
	stack = true,
	close = true,
	client = {
		export = 'bhd_garage.LockVehicle'
	}
},
['wire_cutters'] = {
	label = 'Wire cutters',
	weight = 500,
	stack = true,
	close = true,
	durability = 100,
	client = {
		export = 'bhd_garage.HotWire'
	}
},
['lockpick'] = {
	label = 'Lockpick',
	weight = 15,
	close = true,
	stack = true,
	durability = 100,
	client = {
		export = 'bhd_garage.LockPick'
	}
},
['plate'] = {
	label = 'Fake plate',
	close = true,
	stack = true,
	weight = 200,
	client = {
		event = "bhd_garage:putOnPlate",
	},
},

5

Run the Database Setup

1. Update or insert owned_vehicles Table

Ensure your owned_vehicles table includes any required fields needed for BHD Garage functionality.

2. Choose a Database Setup Method

Option 1: Using the Server Console

Start your server with bhd_garage enabled.

Run the following command in your server console:

/SetupGarageDatabase
Option 2: Import the SQL File
  1. Locate the sql/garage_sql.sql file inside the bhd_garage folder.

  2. Import the SQL file into your database using a database management tool (e.g., HeidiSQL, phpMyAdmin).

6

Restart the Server

Once everything is set up:

  1. Add the resource to your server.cfg file:

    server.cfg
    
    ensure ox_lib
    ensure es_extended or qb-core
    ensure bhd_bridge
    ensure bhd_garage
  2. Restart your server.

7

You’re all done! 🎉 The script should now be fully functional


Support

If you encounter any issues during installation, feel free to reach out to us on Discord for further assistance.

Last updated