FearlessStudios

chooseSpawn

Client export to open the spawn selector

chooseSpawn

Manually opens the spawn selector UI. Use it from other resources like loading screens or character creators.

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.