Skip to Content
Mavix

Houses

Buying, living in and selling a house, plus break-ins and police raids.

What it is

Every house and apartment for sale can be bought at its front door. The owner picks an interior, goes inside, and can later sell it or give it away.

G at your own door: copy a key, transfer the house, or sell it back for 70%.
G at your own door: copy a key, transfer the house, or sell it back for 70%.
Lockpicking a house door: turn the lock and press Enter when it slows down.
Lockpicking a house door: turn the lock and press Enter when it slows down.

How it works

Find a house

Houses for sale show on the map as "Purchasable house" or "Purchasable apartment". Your own houses and houses you have a key to have their own icons.

Buy it at the door

Press E at the front door. The prompt shows the price. You can preview the interiors first (← → to switch, Backspace to stop), then Purchase and pick one. Money comes from cash, or the bank if cash is short. A player can own up to 5 properties.

Live in it

Press E at your door to go in. Inside, press E at the door for the door menu: lock or unlock, Furnish, kick someone out, or exit. Doors lock by themselves when the last person leaves.

Sell or give it away

At your door press G. Sell the house back pays 70% of the price; Transfer ownership gives it to a player next to you. Nobody may be inside, and the storage must be empty. Houses of owners who do not log in for about a month are taken back.

Break-ins. With a lockpick item and at least 2 police online, press G at a locked door. Police get an alert. Turn the lock with ← → and press Enter when it slows down; better houses need more picks. The door then stays open for 20 minutes.

Police raids. The police boss presses G Breach the door at a locked door. It stays open for 2 minutes.

Keys & commands

KeyWhat it doesWho
E at a doorBuy, enter, or open the door menu insideEveryone
G at your doorManage: key copy, transfer, sellOwner
G at a locked doorLockpick, or breach for the police bossRobbers, police boss

Config options

File: [esx]/[housing]/mvx_housing/configuration/config.lua

OptionWhat it changesExample
Config.MaxPropertiesHow many houses one player may own5
Config.ResellHouse.ResellPercentMoney back when selling70
Config.DeleteHouseTake back houses of inactive owners (false = never)month
Config.RandomInteriorRandom interior instead of choosingfalse
Config.LockPicking.MinimumPolicePolice needed online for a break-in2
Config.LockPicking.UnlockMinutesHow long a robbed door stays open20
Config.LockPicking.AlertPoliceAlert police on a break-intrue
Config.PoliceRaid.OnlyBossOnly the police boss can breachtrue
Config.BlipsWhich house icons show on the map
Config.HousesThe houses: name, door, price, interior type, garage

Logs: see Webhooks & Logs (channel housing).

Admin Quick Test

This test uses a Sandy Shores trailer: it costs $90,000, has a garage and needs only 2 lockpicks.

Setup

  1. Give yourself money: /giveaccountmoney me bank 100000.
  2. For the break-in you need a second player and 2 police online: /setjob <other id> police 0 for two other players.
  3. Give the robber lockpicks: /giveitem <robber id> lockpick 3.

Buy and live in it

  1. Teleport to the trailer door: /tp 1813.40 3854.25 34.35. Expected: the prompt to buy "Sandy Shores" for $90,000.
  2. Press E → Preview possible interiors. Expected: you see an interior and ← → switch between them. Backspace stops.
  3. Press E → Purchase and pick an interior. Expected: "You bought ..." and $90,000 less in the bank. The map icon changes to your own house.
  4. Press E to go in. Inside, press E at the door. Expected: the door menu (lock / unlock, Furnish, Exit).
  5. Choose Exit, then press G at the door. Expected: the manage menu (key copy, transfer, sell).

Break-in

  1. Make sure the door is locked. As the robber press G Lockpick the door. Expected: police get "Someone is robbing a house. Check your GPS."
  2. Turn the lock with ← → and press Enter when it slows down, 2 times. Expected: the door opens for 20 minutes; each success uses one lockpick, each wrong try breaks one.

Police raid

  1. Lock the door again. /setjob me police 4 (Chief, the boss grade) and press G Breach the door. Expected: the door opens for 2 minutes.

The end

  1. /setjob me unemployed 0. Empty any storage, nobody inside, then G → Sell the house back. Result: $63,000 back (70% of $90,000) and the trailer is for sale again.

If it doesn't work

No lockpick option: fewer than 2 police online, no lockpick item, or the 60 second wait between attempts. No breach option: you are not the police boss. Sale refused: someone is inside or the storage is not empty.

On this page