> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-multispawn/events.md).

# Events

### Security

The client only sends a slot number, citizen ID or spawn ID. Ownership, slot access, names, birth dates and spawn locations are all checked on the server. Spawns use a server-side session, so players can only spawn at locations the server offered them.

### For other resources

Send a player to character selection with:

```lua
TriggerClientEvent('sbmultispawn:client:openSelector', src)
```

The script also listens to `qb-multicharacter:client:chooseChar`.

### Commands

`/logout` is an admin command. Its name can be changed in `Config.Commands`.
