How project-sloth/ps-housing works
ps-housing is a FiveM resource for property ownership, apartments, and in-home furnishing. The documented player workflow runs from selecting or purchasing a property, through entering and furnishing it, to using its garage and personal storage; realtors configure properties for sale. The UI source excerpts show its furniture catalog, placement modeler, cart, and NUI boundary. Lua implementation details were not sampled, so connections to housing mechanics and integrations are shown only as unverified where appropriate.
Main entry points: Menu.svelte Furniture Menu · sv_property.lua Property Management · SendNUI.ts NUI Messaging · App.svelte UI Application
Components 21
Properties & Apartments
- Property Management
server/sv_property.lua - Property Interaction
client/cl_property.lua - Apartment Flow
client/apartment.lua - Property Migration
client/migrate.lua
Home Features
- Personal Garages
server/server.lua - Keys & Access
server/sv_property.lua - Wardrobes & Stashes
server/server.lua - Interior Shells
stream - Furniture Placement
client/modeler.lua
Furnishing UI
- UI Application
ui/src/App.svelte - Furniture Menu
ui/src/components/Menu.svelte - Catalog & Search
ui/src/components/ItemList.svelte - Furniture Cart
ui/src/components/Cart.svelte - Owned Furniture
ui/src/components/OwnedItems.svelte - Placement Controls
ui/src/components/Modeler.svelte - UI State
ui/src/store/stores.ts
Resource Runtime
- NUI Messaging
ui/src/utils/SendNUI.ts - Framework Adapter
shared/framework.lua - Property Data
server/sv_property.lua
Other components
- Player
- Realtor
Connections 24
- Player → Property Management: browses properties
README.md - Realtor → Property Management: configures listings
README.md - Player → Apartment Flow: selects apartment
README.md - Apartment Flow → Property Migration: migrates stash items
README.md - Player → Property Interaction: enters property
README.md - Property Interaction → Interior Shells: loads interior
- Player → Furniture Placement: furnishes home
README.md - Furniture Placement → UI Application: opens furniture UI
README.md - UI Application → Furniture Menu: renders
ui/src/App.svelte - UI Application → Placement Controls: renders
ui/src/App.svelte - Furniture Menu → Catalog & Search: renders
ui/src/components/Menu.svelte - Furniture Menu → Furniture Cart: renders
ui/src/components/Menu.svelte - Furniture Menu → Owned Furniture: renders
ui/src/components/Menu.svelte - Catalog & Search → NUI Messaging: previews furniture
ui/src/components/ItemList.svelte - Furniture Menu → UI State: updates UI state
- Catalog & Search → UI State: reads furniture state
- Furniture Cart → NUI Messaging: submits purchase
- Placement Controls → NUI Messaging: sends placement
- NUI Messaging → Furniture Placement: calls client handlers
- Property Management → Property Data: stores property data
- Player → Personal Garages: uses garage
README.md - Player → Keys & Access: shares keys
README.md - Player → Wardrobes & Stashes: uses personal storage
README.md - Property Management → Framework Adapter: uses framework