Configuring FS-NowOpen
๐ ACE Permissionsโ
To restrict business creation:
- Set
Config.useAcePerms = true
- Set the required permission name via
Config.acePerm
- 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 businessclose
: Marks the business as closed, keeping it in the directorynone
: 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.