FS-NowOpen
Let players advertise a business and see which ones are open right now.
The steps below were checked against 1.2.1.
Get it running
Start Here
Required: FS-Lib and the built release, including its packaged UI and Lua files.
Installation
-
Put the built
FS-NowOpenfolder in your server’sresourcesdirectory. -
Add the following lines to
server.cfgin this order:ensure FS-Lib ensure FS-NowOpen -
Open
configuration/config.luafor any initial settings you need, then restart the server or resource.
If you want database persistence, set up oxmysql, import fs_nowopen.sql, and review the disconnect action before going live.
First test: Run /openbusiness to open a test listing, then use /openbusinessdir from another player account. Verify the name, location, and open state.
Detailed guides and references
List a business
Open a listing, see it in the directory, and adjust notices.
Keep a listing after the owner leaves
Choose the leave action and set up optional database persistence.
Connect LB Phone
Turn on phone calls or notices only if you use the phone app.
Fix a missing listing or notification
Check disconnect behavior, permissions, app setup, or webhook logging.
Configuration
Optional: oxmysql for persistence and LB Phone for call and notification integration. Default notices still work without LB Phone.
Edit the settings you need, then restart the resource.
| Setting | Default | Meaning and when to change it |
|---|---|---|
Config.onLeaveAction | "delete" | Removes a business when its owner leaves. Use close or none if you intend to retain it. |
Config.useDatabase | false | Persistence is off. Enable with oxmysql and choose a compatible disconnect action. |
Config.PhoneNumberFormat | "auto" | Reads the LB Phone format when available, with a standard fallback. Use false to leave numbers unformatted. |
Retain businesses as closed when owners leave, with the database integration configured. Change just these lines in your existing file.
Config.onLeaveAction = "close"
Config.useDatabase = trueUsage
Troubleshooting
Businesses disappear on disconnect
The default Config.onLeaveAction is "delete", even with persistence enabled. Choose "close" to retain a closed listing or "none" to leave its state as-is.
Admin actions are denied
Check the user’s group and Config.AcePerms.Admin.Perm. The default admin ACE is nowopen.admin.
Discord notices fail
Set the webhook only in configuration/server_config.lua, then check the server console. Keep the webhook URL out of your shared config and logs.