Skip to Content
ScriptsMotels

Coast Motels

Unlimited motels built in game: reception with a scripted camera, keycards, stashes and wardrobes.

DetailValue
Resourcecoast_motels
FrameworksQBCore, Qbox, ESX
Dependenciesox_lib, oxmysql, ox_inventory
ProtectionEscrow — config, locales and bridges are open
PricePremium

Features

  • In-game motel creator (/motelcreator)
  • Keycards as inventory items
  • Rent, extend and check out with daily pricing
  • Works with any MLO — no hard-coded coordinates

Installation

Download

Get coast_motels from portal.cfx.re → Granted Assets .

Dependencies

Make sure ox_lib, oxmysql, ox_inventory are installed and started first.

Database

Run install.sql once on your database.

Start the resource

server.cfg
ensure ox_lib ensure oxmysql ensure ox_inventory ensure coast_motels

Configuration

config.lua
Config.Currency = 'bank' Config.MaxNights = 14 Config.EvictAfter = 24 -- hours after expiry Config.ClearStash = false Config.Keycard = { item = 'motel_keycard', spares = 2, } Config.CreatorAce = 'coast.motels.admin'

Every option has a comment in the file. Missing options fall back to their defaults, so configs from older versions keep working.

Exports

ExportSideDescription
exports.coast_motels:getRoom(source)serverReturns the room a player rents, or nil
exports.coast_motels:hasAccess(source, motelId, room)serverKeycard / owner check

Opening the creator

Give your admins the ace and use /motelcreator in game:

server.cfg
add_ace group.admin coast.motels.admin allow

FAQ

The script doesn’t start. Check the server console. “You lack the required entitlement” means the server key belongs to a different Cfx.re account than the one that bought the script.

Can I change the colours? Yes — see Theme colour.

Still stuck? Ask us on Discord .