Coast Motels
Unlimited motels built in game: reception with a scripted camera, keycards, stashes and wardrobes.
| Detail | Value |
|---|---|
| Resource | coast_motels |
| Frameworks | QBCore, Qbox, ESX |
| Dependencies | ox_lib, oxmysql, ox_inventory |
| Protection | Escrow — config, locales and bridges are open |
| Price | Premium |
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_motelsConfiguration
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
| Export | Side | Description |
|---|---|---|
exports.coast_motels:getRoom(source) | server | Returns the room a player rents, or nil |
exports.coast_motels:hasAccess(source, motelId, room) | server | Keycard / owner check |
Opening the creator
Give your admins the ace and use /motelcreator in game:
server.cfg
add_ace group.admin coast.motels.admin allowFAQ
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 .