# Server

[← Back to README](../README.md)

## Running FXServer

![Server running with the console](images/server.png)

- Start, stop and restart from the title bar pill or the Run menu. K3 Studio can run FXServer directly or through txAdmin.
- **Saving a file restarts only the resource it belongs to.**
- Restart on crash (Run menu): gives up after 3 crashes in 2 minutes
- txAdmin: K3 Studio looks for `txData` inside, beside or above the server folder, and picks the profile if there's only one non-default profile
- Missing FXServer? K3 Studio offers to install the recommended artifact build

## Console

The console shows server and client output together, colored by side, with Server / Client filters. It has a command input with history, and file:line references are clickable links.

## New project wizard

**File › New project** asks for a folder, license key, database, template (Blank, ESX Legacy, Qbox, TypeScript core), ox resources, and whether to create a git repository. You can also mark the project as using txAdmin.

## server.cfg as a form

![server.cfg form](images/cfg_form.png)

Switch between **Form** and **Text** at the top right. The form has:

- **Identity**: server name with a live `^` color preview, project name, description, tags, language, icon
- **Players and game**: max players, OneSync, game build, ScriptHook
- **Network**: endpoints, whether player IPs are shown
- **Security**: pure level, entity control, auth variance and trust, request paranoia, LAN mode, each with a short explanation
- **Secrets**: masked, or showing which `exec`'d file holds them
- **Executed files**: in `exec` order, with missing files and whether `.gitignore` covers secrets
- **Start order**: move `ensure` lines up and down, with warnings when a resource needs a dependency that's missing

## server.cfg as text

![server.cfg checks](images/cfg_quotes.png)

- Completion for commands, for convars after `set` / `setr` / `sets`, for resources and `[categories]` after `ensure`, for `.cfg` files after `exec`, and for aces and principals
- Hover docs for commands and convars
- Checks: unknown resource, missing `exec` file, repeated `ensure`, placeholder license key, secrets that `.gitignore` doesn't cover
