Skip to Content
Mavix

Keys

Copy, give, use and remove house keys with /keys.

What it is

House keys let a friend enter, lock and unlock your house, furnish it, open its storage and use its garage. These are house keys only.

At a door you hold a key to: E to enter, G to lock.
At a door you hold a key to: E to enter, G to lock.

How it works

Make a copy

At your own door press G and choose Make a copy of your key. Copies are free and there is no limit.

Open your keys

Type /keys. A menu lists every key you hold.

Use, give or remove

Use the key locks or unlocks that house (within 3 m of its door). Transfer key gives it to a player within 4 m. Remove key throws it away.

Selling or transferring the house is the way to take every key back at once.

Keys & commands

Key / commandWhat it doesWho
G at your doorMake a copy of your keyOwner
/keysYour key list: use, transfer, removeEveryone
E / G at a door you have a key toEnter / lock or unlockKey holders

Config options

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

OptionWhat it changesExample
KeyConfig.CommandThe command name"keys"
KeyConfig.TransferDistanceHow close the other player must be to receive a key (metres)4.0
KeyConfig.EnableESXIdentityShow character names instead of FiveM namestrue

Admin Quick Test

Setup

  1. You need a house you own and a second player. Buy the Sandy Shores trailer first (see the Houses test).
  2. Teleport to its door: /tp 1813.40 3854.25 34.35.

Make and give a key

  1. Press G → Make a copy of your key. Expected: a message that you made a key.
  2. Type /keys. Expected: the key list shows the trailer key.
  3. Stand within 4 m of the second player, /keys → the key → Transfer key, pick them. Expected: they see "You got a key." and the key leaves your list.

Use the key

  1. The second player presses G at the door. Expected: the door locks or unlocks.
  2. The second player opens /keys → the key → Use the key within 3 m of the door. Expected: the door locks or unlocks.
  3. The second player presses E on the unlocked door and goes in. Expected: they can open the storage and furnish.

The end

  1. The second player opens /keys → the key → Remove key → Yes. Result: the key is gone and they can no longer lock the door.

If it doesn't work

"There's no player nearby": the other player is more than 4 m away. Use the key does nothing: you are more than 3 m from the door.

On this page