Skip to main content

Configuring FS-NowOpen

๐Ÿ” ACE Permissionsโ€‹

To restrict business creation:

  1. Set Config.useAcePerms = true
  2. Set the required permission name via Config.acePerm
  3. Add the permission in your server.cfg:
add_ace group.admin nowopen.use allow

For admin privileges (required regardless of the above):

add_ace group.admin fs_nowopen.admin allow

Tip: You can replace group.admin with a specific identifier or group based on your server's permission setup.


๐Ÿ“ฑ LB Phone Integrationโ€‹

If you're using LB Phone, you can enable direct business calls and alerts:

Config.LB_Phone.Enable = true
Config.LB_Phone.useNotifications = true
Config.LB_Phone.sendOpenNotifications = true
Config.LB_Phone.sendCloseNotifications = true

Players will be able to:

  • Call businesses directly from the directory
  • Receive notifications when businesses open or close

Make sure LB Phone is properly installed and running for this integration to work.


๐Ÿงผ Auto-Cleanupโ€‹

To configure what happens when players leave or crash, set Config.onLeaveAction:

  • delete: Completely removes the business
  • close: Marks the business as closed, keeping it in the directory
  • none: Leaves the business state as-is
Config.onLeaveAction = 'delete'

If you want businesses to persist across server restarts, enable database persistence:

Config.useDatabase = true

๐Ÿ› ๏ธ Debuggingโ€‹

Enable debug logs on both client and server:

Config.debug = true

This can help during development or troubleshooting.