Requirements
Steps
-
Drop the resource into your server, e.g.
resources/[nex]/nex_hotels/.
-
Add it to your
server.cfg after its dependencies:
ensure oxmysql
ensure ox_lib
ensure ox_inventory
ensure ox_target # optional
ensure qbx_core # or qb-core / es_extended / ox_core
ensure nex_hotels
-
Open
config.lua and set:
Config.Framework — 'qbox', 'qbcore', 'esx', or 'ox'
Config.AdminGroups — who can run /hoteladmin (default { 'admin' })
-
Start your server. The database tables are created automatically — no SQL to run.
That’s it. Hop in-game, run /hoteladmin, and start adding hotels.
If you own one of these popular MLOs/IPLs, we ship a ready-made SQL import that creates the hotel and all its rooms for you. Just run the matching file against your database:
mysql -u <user> -p <database> < resources/[nex]/nex_hotels/imports/01_opium_nights_hotel.sql
| Import file | Hotel | Rooms | Where to buy the MLO/IPL |
|---|
01_opium_nights_hotel.sql | Opium Nights Hotel | 78 | tstudio3d.com — Opium Nights |
02_richards_cortez_motel.sql | Richards Cortez Motel | 24 | Richards Maps — Cortez Hotel |
03_v_hotel.sql | V Hotel | 3 | tstudio3d.com — V Hotel |
You need to actually own and stream the matching MLO/IPL on your server. The SQL only sets up the hotel data — it doesn’t ship the interior itself. Players will fall through the map if the interior isn’t loaded.
You can run any import twice — it won’t create duplicates.
Building your own hotels
You don’t need an MLO. Stand anywhere, run /hoteladmin, click + New Hotel, and follow the steps in Admin panel. Players see new hotels and rooms instantly — no restart needed.
Updating
config.lua is preserved when you replace the resource — your settings won’t be wiped. Hotels and rentals are stored in the database, so they’re preserved too.
- Replace the resource files with the new version.
- Restart the server.