Skip to main content

Requirements

Steps

  1. Drop the resource into your server, e.g. resources/[nex]/nex_hotels/.
  2. 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
    
  3. Open config.lua and set:
    • Config.Framework'qbox', 'qbcore', 'esx', or 'ox'
    • Config.AdminGroups — who can run /hoteladmin (default { 'admin' })
  4. 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.

Pre-configured 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 fileHotelRoomsWhere to buy the MLO/IPL
01_opium_nights_hotel.sqlOpium Nights Hotel78tstudio3d.com — Opium Nights
02_richards_cortez_motel.sqlRichards Cortez Motel24Richards Maps — Cortez Hotel
03_v_hotel.sqlV Hotel3tstudio3d.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.
  1. Replace the resource files with the new version.
  2. Restart the server.