FearlessStudios

Installation & Configuration

Install SpawnSelector, manage saved locations, and choose who opens the selector.

Choose when players see the selector

  • On join: Leave Config.manuallyTrigger = false.
  • After FS-LoadingScreenV2: Follow the loading screen setup. Both resources need a config change.
  • Controlled by another client resource: Use the chooseSpawn export.

Installation

  1. Copy the built FS-SpawnSelector release into your server's resources directory.
  2. In server.cfg, add ensure FS-SpawnSelector. If the installed manifest declares FS-Lib, start FS-Lib first.
  3. Grant editor access to your intended admin group:
add_ace group.admin fs.spawn.admin allow
  1. Start the resource, open /spawnadmin, maintain the locations, and save.
  2. Use /spawnselector to confirm a player can select and reach a saved location.

Configuration

To change the opening behavior, editor access, or LUX duty counts, edit config.lua in the installed resource. Start with the defaults below.

SettingDefaultMeaning and when to change it
Config.enableSpawnSelectorCommandtrueAllows players to reopen selection with /spawnselector. Disable to restrict opening to your join/integration flow.
Config.manuallyTriggerfalseOpens automatically on join. Set true when a loading screen or another resource calls the client export.
Config.Admin.enabledtrueEnables the location editor. Disable if you do not want in-game editing available.
Config.Admin.commandspawnadminEditor command without a slash. Rename to avoid conflicts.
Config.Admin.permissionfs.spawn.adminACE for editor access. Grant only to your location editors.
Config.Lux.enabledfalseLUX integration setting; the source also detects the server-only lux_api_key convar. Do not put an API key in this shared config.
Config.Lux.refreshSeconds30Duty-count refresh interval, with a 30-second minimum. Increase for less frequent refreshes.
Config.Lux.showOfflinefalseHides services with nobody on duty. Enable to include them.

For a loading-screen handoff, change the existing setting:

Config.manuallyTrigger = true

Then follow FS-LoadingScreenV2 integration.

Locations and safe updates

Current versions save editor changes in spawns.json and retain the preceding saved content in spawns.backup.json. The shipped starter data lives in defaults/spawns.json. Back up your saved files before replacing the resource.

Use /spawnadmin instead of the old Config.Spawns table. Set access rules for each location in the editor, then grant the matching ACE to players who should be able to choose it.

Spawn images belong in the installed nui/images/ directory; use the exact filename in the location's image field. Keep custom images in your update backup.

HUD integration

Minimap hiding is automatic. Adapt other HUD handling in the escrow-exempt bridge/hud.lua when your HUD needs it.

Troubleshooting

The editor is denied

Check Admin.enabled, the configured permission, and the player's group membership.

The selector stays closed

When manuallyTrigger is true, another resource must call chooseSpawn. Check the matching loading-screen handler and ensure the resource is started.

Saved locations do not survive an update

Restore your own spawns.json; do not overwrite it with defaults. Check the server console for file-write errors before saving again.

Advanced reference

See client exports for chooseSpawn.