Skip to content

Housing: exports, events & commands ​

Generated from the Lua in the release. Descriptions are the comments above each definition. Event names and export names are public contracts: they do not change between versions.

Exports ​

Call them as exports['lumo-housing']:Name(...) from the side named in each table.

Client ​

ExportDescription
GetAccess()
getCurrentHouse()Radial menus ask these to show the housing ring: the home id while inside, else nil.
getEnteredHouse()
IsInside()── Exports ─────────────────────────────────────────────────────────────────
IsPosing()
OpenBrowser()
OpenDecorate()
OpenWalkInDecorate(name)
PoseRadial()
SetWalkInHouse(name)lumo-apartments furnishes its flats through these (server side: StoreAllDecorations). SetWalkInHouse(name | nil): the walk-in apartment whose room the player stands in.
StartPose(key)
StopPose()

Server ​

ExportDescription
CheckHasKey(license, citizenid, name, src)qb-garages signature: (license, citizenid, house, source)
GetHomes(identifier)
GetListings()Homes on the market, for phone apps: the first free unit the bank sells per house (one row per building) plus every player listing. Buying still happens at the door.
HasKey(identifier, name)
IsInside(src)
StoreAllDecorations(name)

Events ​

  • Client events are triggered on the player: TriggerClientEvent(name, src, ...) from the server, or TriggerEvent(name, ...) on the client.
  • Server events are triggered with TriggerServerEvent(name, ...). The server checks the player, distance and amounts itself; never rely on a client to do it.

Client ​

EventArgumentsDescription
esx:onPlayerLogout
esx:playerLoaded
lumo-housing:client:accessaccess
lumo-housing:client:alarmdata
lumo-housing:client:allall
lumo-housing:client:doorbelllabel
lumo-housing:client:enterdata
lumo-housing:client:forceExitdoor
lumo-housing:client:furniturekey, op, data
lumo-housing:client:housename, view
lumo-housing:client:mediakey, id, state
lumo-housing:client:offeroffer
lumo-housing:client:petkey, data
lumo-housing:client:photot, ref
lumo-housing:client:photoDataref, data
lumo-housing:client:raideron
lumo-housing:client:restedhealth
lumo-housing:client:walkOutdoorLogin put us at a position saved inside a home that is no longer ours.
qb-houses:client:enterOwnedHousehomeId
qb-houses:client:LastLocationHousehomeId── Spawn menus ("last location" / "my house") ──────────────────────────────
qb-houses:client:toggleDoorlock── Radial menu actions (while inside a home) ───────────────────────────────
QBCore:Client:OnPlayerLoaded
QBCore:Client:OnPlayerUnload

Server ​

EventArgumentsDescription
housing:server:removeHouseKeyhomeId, holder
housing:setInside_, value
lumo-housing:server:decorPhototoken, key, data
lumo-housing:server:furnitureLeave
lumo-housing:server:furnitureStashkey, id
lumo-housing:server:hello
lumo-housing:server:offerAnsweraccept
lumo-housing:server:openStashname, unit
lumo-housing:server:phototoken, dataAdmin upload (latent event: a picture is far bigger than a normal event).
lumo-housing:server:photoGetrefAnyone may look at a listing's pictures.
lumo-housing:server:raidCancel
lumo-housing:server:restorehomeIdSpawn menus: "last location" picked (client event → server), or spawning elsewhere.

Commands ​

CommandSideDescription
/housecoordsclient
/lumohousing_endtourclient