Starter Home
Free unit granted once to each character.
coe_housingHousing & Properties
Starter apartment, hotels, houses and commercial properties with rent
coe_corecoe_databasecoe_loggingcoe_uicoe_economycoe_businessescoe_inventory
coe_housing
18 exports · 0 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Housing and commercial properties registered in the admin panel: a free starter apartment, hotels, houses and business locations, each unit a contract with its interior in its own world (routing bucket). Daily-rate rent in weekly, biweekly or monthly cycles with renewal and grace; commercial properties rented or assigned to businesses, charged to the society cash.
Everyone shares the same interior (MLO/IPL), but each contract has its own bucket: a hundred players can live in the same building without meeting.
Free unit granted once to each character.
Weekly, biweekly or monthly, with renewal.
Rented or assigned to businesses.
Each contract in its own routing bucket.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
Built with vanilla HTML5, CSS3 tokens, and modern JavaScript. No heavyweight frameworks (React/Vue/Electron). Rendered directly in FiveM DX12's Chromium Embedded Framework at 0.00 ms while closed.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
IsPlayerAceAllowed(src, "coe.admin")
exports.coe_audit:Record(severity, category, event, context)
Clean Architecture & HAL
Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.
exports['coe_housing']:AddressActive(propertyId, owner)
→ any
Checks whether the address still exists (an active lease or an illegal property with a world). Returns the interior used to place the delivery.
| Parameter | Type |
|---|---|
propertyId | any |
owner | any |
local result = exports['coe_housing']:AddressActive(propertyId, owner)exports['coe_housing']:BeginPreview(playerId)
→ any
Starts a preview: the admin moves to a private world while viewing interiors. EndPreview returns them to the shared world.
| Parameter | Type |
|---|---|
playerId | any |
local result = exports['coe_housing']:BeginPreview(playerId)exports['coe_housing']:BusinessProperties(businessId)
→ any
Returns the commercial properties leased or granted to a business for its business tablet.
| Parameter | Type |
|---|---|
businessId | any |
local result = exports['coe_housing']:BusinessProperties(businessId)exports['coe_housing']:CurrentSpace(playerId)
→ any
Returns the space the player is currently in ({ propertyId, owner, interior }), or nil if they are outside a property.
| Parameter | Type |
|---|---|
playerId | any |
local result = exports['coe_housing']:CurrentSpace(playerId)exports['coe_housing']:DeleteProperty(propertyId)
→ any
Export server DeleteProperty (server/main.lua).
| Parameter | Type |
|---|---|
propertyId | any |
local result = exports['coe_housing']:DeleteProperty(propertyId)exports['coe_housing']:DeliveryAddresses(playerId)
→ any
Returns addresses where the character can receive deliveries: homes, business properties where they work, and accessible illegal properties. Expired contracts outside the grace period are excluded.
| Parameter | Type |
|---|---|
playerId | any |
local result = exports['coe_housing']:DeliveryAddresses(playerId)exports['coe_housing']:EndContract(kind, contractId)
→ any
Admin real-estate action that ends a contract. Initial and business-granted contracts cannot be ended here.
| Parameter | Type |
|---|---|
kind | any |
contractId | any |
local result = exports['coe_housing']:EndContract(kind, contractId)exports['coe_housing']:EndPreview(playerId)
→ any
Export server EndPreview (server/main.lua).
| Parameter | Type |
|---|---|
playerId | any |
local result = exports['coe_housing']:EndPreview(playerId)exports['coe_housing']:InteriorThumbs()
→ any
Captured in-game thumbnails, mapped from interior IDs to JPEG data URLs.
No parameters.
local result = exports['coe_housing']:InteriorThumbs()exports['coe_housing']:Interiors()
→ any
Returns the catalog of native interiors (shared/interiors.lua) for the admin to choose an interior for each property.
No parameters.
local result = exports['coe_housing']:Interiors()exports['coe_housing']:IsReady()
→ any
Export server IsReady (server/main.lua).
No parameters.
local result = exports['coe_housing']:IsReady()exports['coe_housing']:ListProperties()
→ any
Export server ListProperties (server/main.lua).
No parameters.
local result = exports['coe_housing']:ListProperties()exports['coe_housing']:PlayersInSpace(propertyId, owner)
→ any
Returns players inside a space, for showing deliveries to people already there.
| Parameter | Type |
|---|---|
propertyId | any |
owner | any |
local result = exports['coe_housing']:PlayersInSpace(propertyId, owner)exports['coe_housing']:PropertyContracts(propertyId)
→ any
Admin real-estate view: contracts for a property and who is currently inside.
| Parameter | Type |
|---|---|
propertyId | any |
local result = exports['coe_housing']:PropertyContracts(propertyId)exports['coe_housing']:SaveInteriorThumb(interiorId, image)
→ any
Export server SaveInteriorThumb (server/main.lua).
| Parameter | Type |
|---|---|
interiorId | any |
image | any |
local result = exports['coe_housing']:SaveInteriorThumb(interiorId, image)exports['coe_housing']:SaveProperty(raw)
→ any
Export server SaveProperty (server/main.lua).
| Parameter | Type |
|---|---|
raw | any |
local result = exports['coe_housing']:SaveProperty(raw)exports['coe_housing']:TabletCall(playerId, appId, action, payload)
→ any
Export server TabletCall (server/main.lua).
| Parameter | Type |
|---|---|
playerId | any |
appId | any |
action | any |
payload | any |
local result = exports['coe_housing']:TabletCall(playerId, appId, action, payload)exports['coe_housing']:TabletVisible(playerId, appId)
→ any
Export server TabletVisible (server/main.lua).
| Parameter | Type |
|---|---|
playerId | any |
appId | any |
local result = exports['coe_housing']:TabletVisible(playerId, appId)This module registers no commands: it is driven by exports and events.