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.

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 / command | What it does | Who |
|---|---|---|
| G at your door | Make a copy of your key | Owner |
/keys | Your key list: use, transfer, remove | Everyone |
| E / G at a door you have a key to | Enter / lock or unlock | Key holders |
Config options
File: [esx]/[housing]/mvx_housing/configuration/keys.lua
| Option | What it changes | Example |
|---|---|---|
KeyConfig.Command | The command name | "keys" |
KeyConfig.TransferDistance | How close the other player must be to receive a key (metres) | 4.0 |
KeyConfig.EnableESXIdentity | Show character names instead of FiveM names | true |
Admin Quick Test
Setup
- You need a house you own and a second player. Buy the Sandy Shores trailer first (see the Houses test).
- Teleport to its door:
/tp 1813.40 3854.25 34.35.
Make and give a key
- Press G → Make a copy of your key. Expected: a message that you made a key.
- Type
/keys. Expected: the key list shows the trailer key. - 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
- The second player presses G at the door. Expected: the door locks or unlocks.
- The second player opens
/keys→ the key → Use the key within 3 m of the door. Expected: the door locks or unlocks. - The second player presses E on the unlocked door and goes in. Expected: they can open the storage and furnish.
The end
- 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.