[Release] [Standalone] House Purchase V1

I’m pleased to introduce a script for standalone servers that enables players to purchase, enter, explore and exit houses. After returning to a standalone server due to limited time for a QB server, I aimed to enhance realism.

It offers configuration options for setting house locations and customizing details via the server.lua and client.lua files. Note that the current version does not save player-purchased homes, so properties will not persist through server restarts or player logins. A feature to save homes is planned for future updates.

The script includes:

  • A house purchase system that lets players buy houses in-game.
  • Exploration capabilities so players can enter and explore their purchased homes.
  • Exit functionality that allows players to leave their homes.

Configuration details:

  1. server.lua: Manages server-side logic for house purchases and interactions. Configure house placement and metadata, and handle in-game currency exchange and ownership.
  2. client.lua: Manages client-side interactions with houses, including entering and exiting them, and controls animations, transitions, and UI elements.

Known limitations:

  • No persistent data storage. Homes are not saved between sessions. Purchased homes will be reset after server restarts, and homes will not be retained if players disconnect.
  • Future updates will include a system to save and load player-purchased homes across sessions.

Usage instructions:

  1. Installation: Place server.lua and client.lua in the resources directory of your FiveM server and add ensure standalone_homes to your server.cfg.
  2. Configuration: Edit server.lua for house locations and server-side settings, and modify client.lua for client-side interactions and UI. Restart the server to apply changes.
  3. Testing: Verify the functionality of house purchases, exploration, and exiting. Check configurations and make necessary adjustments.

I welcome your feedback! If you encounter issues or have suggestions for improvements, please let me know. Your input will help enhance the script. Future developments include adding persistent data storage and exploring additional features like house customization.

Preview:

I’m sure I’ve read all the TOS right, so I’m hoping that I’ve posted this right, forum Admins if I haven’t please make me aware.

UPDATE V1: This is my first time using GitHub, so I’ve made several edits to organize the filing system correctly.

6 Likes

Very nice. Been looking for a standalone housing script for ages.

2 Likes

Thank you & no problem!
Any Issues let me know! :smile:

I’m currently working on it to enable a price, I think I’ve perfected it now, so stay tuned, release could be at some point today! - For obvious reasons this won’t actually charge anyone, it’s just to give a bit more realism to the script.

However me and a few friends are trying to work on a standalone economy but so fair it's in very early testing

1 Like

First update released: Price display feature added: Now, property prices will be shown when a player walks up to the for sale sign. You can also adjust these prices directly in the client.lua file.

Preview

1 Like

Little change to the client.lua updated on GitHub

When a player purchases a property, the blip now changes from ‘for sale’ to ‘home.

now just need a database

1 Like

We are currently working on this, hopefully we’ll have it set up on a database for v2 update

1 Like

Version 2 Update News

I’ve finally cracked it! After countless hours of frustration and tweaking, I managed to get the code just right. Now, players on a standalone server can “purchase” their own property, bringing a new level of realism to your FX server. I’m also working on an economy script, so while the property purchase feature doesn’t involve actual transactions yet (that will change soon.)

As for the next steps, there won’t be a V2 release until I’ve completed final testing and I’m fully satisfied with the results. I also want to gauge interest before moving forward. If you’ve tested V1 and you’re happy with it, please leave a comment. I’d love to hear your thoughts on the V2 preview as well. Should I release it? Should it be a paid resource or free? Let me know what you think, and we’ll see how the testing goes!

The video was too big to upload, so I had to do it through my YouTube

2 Likes

this is awesome, is there a way i can add more ipls? and can other players enter your home?

Yeah, though the config you can add them as long as they are vanilla interiors, havent tried them with external mlo as yet.

As for letting someone enter, not yet, I’ve been working on that

1 Like

100% Awesome V2 let’s go <3

1 Like