FearlessStudios

chooseSpawn

Client export to open the spawn selector

chooseSpawn

Use this from a client script to open the selector when a loading screen or character creator is done.

Usage

Call the export after the player has loaded:

client.lua
exports["FS-SpawnSelector"]:chooseSpawn()

Notes

  • Config.manuallyTrigger is not required to call this export.
  • Setting Config.manuallyTrigger = true stops the UI from opening automatically, giving you full control over when to show it.

When to use

  • After a loading screen finishes
  • After selecting a character in a multi-character system
  • From a manual command or interaction that should open the selector

Internal reference

The export simply proxies the internal chooseSpawn() function:

client.lua
exports("chooseSpawn", function()
    chooseSpawn()
end)

You can trigger it from any external resource using the export shown above.

Returns

  • void: No return value.