This installation guide covers both ESX and QBCore frameworks.
| Resource | Source |
|---|---|
| ox_lib | Download |
| bob74_ipl | Download |
| xsound | Download |
| screenshot-basic | Download |
| 0r_lib | You can find it on your keymaster account. (It is delivered as Escrow.) |
| qua-garagehouse | You can find it on your keymaster account. (It is delivered as Escrow.) |
| qua-house | You can find it on your keymaster account. (It is delivered as Escrow.) |
| qua-nmotel | You can find it on your keymaster account. (It is delivered as Escrow.) |
Target System#
The system can work with ox_target and qb-target plugins. Or you can integrate it by making arrangements yourself.
Supported Inventories#
- qb-inventory
- qs-inventory
- ox_inventory
- ps-inventory
- lj-inventory
- origen_inventory
- ls-inventory
- core-inventory
- codem-inventory
SQL For House Script#
It has an automatic SQL installation system. You don't have to do anything.
Setup For Inventories#
Open the ox_inventory/data/items.lua file. And place the following code.
['housekey'] = {
label = 'House Key',
weight = 200,
stack = false,
consume = 0,
unique = true,
close = true,
description = 'Housekey',
client = {
export = '0r_houses.useHouseKey'
},
image = 'housekey.png'
},
['houselockpick'] = {
label = 'House Lockpick',
weight = 200,
stack = false
},
The best thing about these inventories is that their infrastructure is qb-inventory. That's why the installations are the same.
Place these items in items.lua in your inventories. (qb-inventory to qb-core/shared/items.lua)
housekey = { name = 'housekey', label = 'House Keys', weight = 1000, type = 'item', image = 'housekeys.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Default House Key' },
houselockpick = { name = 'houselockpick', label = 'House Lock Pick', weight = 1000, type = 'item', image = 'lockpick.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Lockpick for House' },
Open your inventory javascript file. And search for the FormatItemInfo function and place this code in the if loop within that function. There should be a metadata.js file in qs-inventory, do the same process there.
} else if (itemData.name == "housekey") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>House: </strong><span>" +
itemData.info.HouseName +
"</span></p><p><strong>Address: </strong><span>" +
itemData.info.Address
);
For New qb-inventory
case "housekey":
return `<p><strong>House: </strong><span>${itemData.info.HouseName}</span></p>
<p><strong>Address: </strong><span>${itemData.info.Address}</span></p>`;
Add this code to the if condition in the codem-inventory/config/metadata.js file located in the inventory.
} else if (item.name.match("housekey")) {
let infoData = [
{ label: "House Key: ", value: iteminfo.HouseName },
{ label: "Address:", value: iteminfo.Address },
]
returnString = infoData;
Find the metadata.js file and add this code to the item list in the qbItemInfo function.
} else if (itemData.name == "housekey") {
html = `
<div class="item_info_container">
<div class="item_info_row">
<div class="item_info_row_left">First Name: </div>
<div class="item_info_row_right">${itemData.info.HouseName}</div>
</div>
<div class="item_info_row">
<div class="item_info_row_left">Last Name: </div>
<div class="item_info_row_right">${itemData.info.Address}</div>
</div>`;
Other Supported House Maps#
Apart from the maps that come with the purchase of 0R House, house maps are available. House maps provided by Household Studios and compatible with the house system:
| Resource | Require | |
|---|---|---|
| Hane Mirrorpark House | https://forum.cfx.re/t/free-prop-classic-coffee-table-wide-dont-miss-41-houses-with-40-discount/5226398 | ox_lib |
| Hane Vespucci Houses (Not Ready Yet) | https://forum.cfx.re/t/mlo-vespucci-6-villas-pack/4747944 | ox_lib |
These maps belong to Hane Studios. If you have any problems you should contact them.
Server.cfg#
start es_extended
start 0r_lib
start 0r_houses
## If You Are Using Other Maps ##
start hn_expansion_41_houses
start hane_mirrorpark_data
--- esx resources --
start qb-core
start 0r_lib
start 0r_houses
## If You Are Using Other Maps ##
start hn_expansion_41_houses
start hane_mirrorpark_data
--- qbcore resources --
The server.cfg initialization order should be as follows.