Skip to main content
Awoken Apartments exposes a small set of server-side exports for cross-resource integration (typically MDT / dispatch / housing UI scripts).
There are no client-side exports.

Server exports

getPlayerRoom

Returns the apartment a given player is currently assigned to.
number
required
Player server ID.
number
The internal apartment slot index.
string
Motel group ID (matches a key in Config.MotelGroups). May be nil if the room isn’t in a group.
string
Human-readable motel name (e.g., “Pink Cage Motel”).
string
Human-readable room label (e.g., “Room 12”).

GetAddress

Look up an apartment address by player identifier.
string
required
Per-player identifier - license on ESX, license on qbox/qbcore.

GetAddressByCitizenId

Look up an address by citizenid (qbox/qbcore character ID).
string
required
Character ID (qbox/qbcore).

GetAllAddresses

Return the entire address registry as a table keyed by identifier.
Use this for MDT bulk lookups, server-status dashboards, etc.

Common integration recipes