This script is a FiveM housing system for QBCore servers, allowing players to own, decorate, and interact with houses. Here’s what it does in simple terms:
Principais recursos
- House Tiers:
- Houses are divided into six tiers (T1 to T6), each with unique characteristics and interiors.
- Higher tiers typically have better or more luxurious features.
- Principais recursos:
- Stormram for Police: Police can break into houses using a stormram.
- House Garage: Players can add garages to their houses for storing vehicles.
- Comandos no jogo: Add or manage houses with commands like
/createhouse
ou/addgarage
. - House Decoration: Players can customize and furnish houses with items such as sofas, chairs, etc.
- Key System: Players can lock or unlock houses and share keys.
- Outfits and Storage: Store clothes and items in the house.
- Doorbell: Other players can ring the house’s doorbell.
- Real Estate Job: Specific players (real estate agents) can manage house creation and garages.
- Blip System: Automatically adds a map marker for owned houses.
Comandos:
/decorate
: Allows players to decorate their house with items like furniture./createhouse [price] [tier]
: Creates a new house with a specific price and tier (real estate job only)./addgarage
: Adds a garage to a nearby house (real estate job only)./enter
: Allows players with keys to enter a house./ring
: Rings the doorbell of a nearby house.
Instalação:
- Adicione o script: Place it in the
[qb]
directory of your server files. - Configuração do banco de dados: Import the provided
qb-houses.sql
into your server database. - Configuração do servidor: Ensure dependencies like
núcleo qb
,qb-interior
eqb-garagens
are listed in the server configuration file.
Customization (Config):
- Z Offset: Determines the height adjustment for house positioning.
- Furniture List: Defines items (like sofas) available for house decoration, including their prices and labels.
- Stormram Settings: Configures how many times police need to use a stormram to breach a house.
Furniture Customization:
- Players can choose from a variety of furniture categories (e.g., sofas).
- Each item has a unique price, label, and in-game object model.
- You can edit or add items in the
Config.Furniture
seção.