# Spawn (New Players)

## Starting Apartments

If your server uses starting apartments:

{% code title="config.lua:" overflow="wrap" fullWidth="false" %}

```lua

config.Starting_Apartments = true -- requires an apartment resource that supports this feature
```

{% endcode %}

Insert your spawn events in the following events located in `config.lua`:

1. When a new player is created:

{% code title="Triggers on the client " fullWidth="false" %}

```lua
RegisterNetEvent('solos-multicharacter:client:Starting-Apartment-Event', function(newData)
    
    INSERT SPAWN EVENT THAT ALLOWS PLAYERS TO CHOOSE OR SPAWN IN THEIR APARTMENT

end)
```

{% endcode %}

## No Starting Apartments

1. When a new player is created:

{% code title="Triggers on the client " %}

```etlua
RegisterNetEvent('solos-multicharacter:client:New-SpawnEvent', function(data)

    INSERT EVENT OR LOGIC TO SPAWN NEW CHARACTER AND BEGIN CHARACTER CREATION
    
end)
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://solos.gitbook.io/solos/multicharacter/spawn-new-players.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
