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.
Common integration recipes
MDT - show resident's apartment in their profile
MDT - show resident's apartment in their profile
Dispatch - display apartment as call location
Dispatch - display apartment as call location
Job UI - list all residents of a motel
Job UI - list all residents of a motel