0R RESOURCES 0R Houses Installation 0Resmon Houses Installation Document and Basic Concepts
This installation guide covers both ESX and QBCore frameworks.
You can find it on your keymaster account. (It is delivered as Escrow.)
You can find it on your keymaster account. (It is delivered as Escrow.)
You can find it on your keymaster account. (It is delivered as Escrow.)
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
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.
Copy ['housekey'] = {
label = 'House Key',
weight = 200,
stack = false
},
['houselockpick'] = {
label = 'House Lockpick',
weight = 200,
stack = false
},
and now open the ox_inventory/modules/items/client.lua file and place the following code.
Copy Item('housekey', function(data, slot)
TriggerEvent('0R:Houses:Client:OpenHouseDoor', slot)
end)
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)
Copy 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.
Copy } 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
Copy 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.
Copy } 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.
Copy } 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:
Hane Vespucci Houses (Not Ready Yet)
These maps belong to Hane Studios. If you have any problems you should contact them.
Server.cfg
Copy 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 --
Copy 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.
Last updated 10 months ago