FearlessStudios
FiveM ScriptsPaid Scripts

FS-NowOpen

Let players advertise a business and see which ones are open right now.

version

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

  1. Put the built FS-NowOpen folder in your server’s resources directory.

  2. Add the following lines to server.cfg in this order:

    ensure FS-Lib
    ensure FS-NowOpen
  3. Open configuration/config.lua for 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

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.

SettingDefaultMeaning 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.useDatabasefalsePersistence 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 = true

Usage

Follow the in-game steps.

Troubleshooting

Find the fix by symptom.

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.