Page cover image

Installation guide

Welcome to the Brutal Housing installation guide, here you can learn how to completely install our asset.


Asset download

  • Put the script folder to your server.

  • Start the script in the server.cfg. (ensure brutal_housing)

  • Restart your server! (And you get permission to use the script)


Upload the SQL

CREATE TABLE IF NOT EXISTS `brutal_housing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `model` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `theme` int(11) NOT NULL DEFAULT 0,
  `previousOwner` text DEFAULT NULL,
  `owner` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `keyid` text DEFAULT NULL,
  `phone` text DEFAULT '',
  `isRented` int(11) DEFAULT 0,
  `forSale` int(11) DEFAULT 1,
  `rentable` int(11) DEFAULT 1,
  `defaultPrice` int(11) DEFAULT NULL,
  `purchasePrice` int(11) DEFAULT NULL,
  `salePrice` int(11) DEFAULT NULL,
  `label` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `address` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `url` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `coords` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `lastPaid` longtext DEFAULT NULL,
  `messages` longtext CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `furnitures` longtext DEFAULT NULL,
  `securityData` longtext DEFAULT NULL,
  `garage` int(11) DEFAULT 0,
  `lastUpdated` text DEFAULT NULL,
  UNIQUE KEY `Index 2` (`id`),
  KEY `Index 1` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=armscii8 COLLATE=armscii8_bin;


CREATE TABLE IF NOT EXISTS `brutal_housing_estates` (
  `job` text NOT NULL,
  `balance` int(11) DEFAULT NULL,
  `soldProperties` longtext DEFAULT '[]',
  UNIQUE KEY `UNIQUE` (`job`(100)) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;


CREATE TABLE IF NOT EXISTS `brutal_housing_garages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` text NOT NULL,
  `model` text DEFAULT NULL,
  `theme` int(11) NOT NULL DEFAULT 0,
  `previousOwner` text DEFAULT NULL,
  `owner` text DEFAULT NULL,
  `keyid` text DEFAULT NULL,
  `phone` text DEFAULT '',
  `isRented` int(11) DEFAULT 0,
  `forSale` int(11) DEFAULT 1,
  `rentable` int(11) DEFAULT 1,
  `defaultPrice` int(11) DEFAULT NULL,
  `purchasePrice` int(11) DEFAULT NULL,
  `salePrice` int(11) DEFAULT NULL,
  `label` text DEFAULT NULL,
  `address` text DEFAULT NULL,
  `url` text DEFAULT NULL,
  `coords` text DEFAULT NULL,
  `lastPaid` longtext DEFAULT NULL,
  `messages` longtext DEFAULT NULL,
  `vehicles` longtext DEFAULT NULL,
  `house` int(11) DEFAULT NULL,
  `lastUpdated` text DEFAULT NULL,
  UNIQUE KEY `Index 2` (`id`),
  KEY `Index 1` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

Upload the items

This asset depends on certain items for its operation, so don't forget to integrate all items correctly into your database or inventory system, depending on how you use your server.

If your inventory is not among the following, you can create the file yourself using the examples of each item by displaying any of the following tabs.

Items for esx_inventory
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('lockpick', 'Lockpick', 1, 0, 1),
('laptop', 'Laptop', 1, 0, 1),
Items for qb-inventory
['lockpick'] 			 		 = {['name'] = 'lockpick', 						['label'] = 'Lockpick', 						['weight'] = 1, 		['type'] = 'item', 		['image'] = 'lockpick.png', 				['unique'] = false, 	['useable'] = false, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
['laptop'] 			 			 = {['name'] = 'laptop', 							['label'] = 'Laptop', 						['weight'] = 1, 		['type'] = 'item', 		['image'] = 'laptop.png', 				['unique'] = false, 	['useable'] = false, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
Items for qs-inventory
["lockpick"] = {
    ["name"] = "lockpick",
    ["label"] = "Lockpick",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "lockpick.png",
    ["unique"] = false,
    ["useable"] = false,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Not have"
},

["laptop"] = {
    ["name"] = "laptop",
    ["label"] = "Laptop",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "laptop.png",
    ["unique"] = false,
    ["useable"] = false,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Not have"
},
Items for ox-inventory
["lockpick"] = {
    label = "Lockpick",
    weight = 1,
    stack = true,
    close = false,
},

["laptop"] = {
    label = "Laptop",
    weight = 1,
    stack = true,
    close = false,
},

Asset positioning

-- First we will start the cores, never below
ensure es_extended or qb-core

-- The Notify / TextUI or target system / Progressbar / Inventory / Billing have to be above our asset
ensure [notify]
ensure [inventory]
ensure [billing]
ensure [textui] -- or target system 

-- Start the Brutal Housing at the end
ensure brutal_housing

Setting up the Webhook

If you want to use the opportunnities which can be given by a webhook then you will have to set it up in our assets. You can do it by changeing a value to your discord webhook in the sv-utils.lua file.

sv-utils.lua
Discord Webhook

Setting the loaded event

In the client-core.lua file go to the LoadedEvent variable and if you are using a different event then paste there your event which is used on your server.

client-core.lua

Checking the Config file

Please make sure that you go through the whole file during the installation and check everything. It is one of the most important things as if you miss this step the script might won't work propetly.

Most important steps

The most important things always at the top of the config so pay the most attencion to these elements.

Setting the Core

Set your server's core wether it's using es_extended or qb-core, other cores aren't supported .

Setting the Notify

If you are using the Brutal Notify then it is good news, you don't have to do anything. If you aren't then set the BrutalNotify value to false in the config and set up your own notify in the cl-utils.lua

Setting the TextUI or Target

Set the TextUI from the options which are commented out. If your server using an other TextUI it is not a problem, you can set it up in the cl-utils.lua. If you want to use a target system then set the TextUI to false and set your target.


Lockpicking Minigame

Download this script to use the lockpicking minigame.

Break-in/Raid Minigame

Download this script to have minigames when you break into a house or raid one

Doorlock

Download this script to be able to create locks for the mlo type houses

The sql for the door lock.

CREATE TABLE
    IF NOT EXISTS `ox_doorlock` (
        `id` int (11) unsigned NOT NULL AUTO_INCREMENT,
        `name` varchar(50) NOT NULL,
        `data` longtext NOT NULL,
        PRIMARY KEY (`id`)
    );

Setting up the interiors

If you want to add your own interiors/apartments/furnitures you have to navigate to the configs folder.

Download the preconfigured shells

Here are two links to the preconfigured shells, which are basically in the interiors.lua file


Setting up the core

Paste this line to the server.cfg file. Otherwise you can't place door objects.

setr game_enableDynamicDoorCreation "true"
QBOX

If you are using the QBOX core then set your core to "qbcore" in the config.lua file. Then follow our guide on discord how to make the script compatible with the QBOX core. Discord Room

If you got any error

If you followed the installational guide and the script still don't work or you get any errors the please check the common errors, here in the docs and in our discord server, for more informations.

Last updated

Was this helpful?