K3 studio WSk3studio
studio.kr3mu.dev Get started

Server

Running FXServer

  • 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

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

  • 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, a short or committed rcon_password, secrets that .gitignore doesn't cover

Profiler

Profiler (command palette) reads a server profile: a save from FXServer's profiler saveJSON, read on a worker so even a few hundred MB opens in a moment. Record runs profiler record and saveJSON on the running server for you.

  • The slowest tick is picked first; the tick strip above shows every tick (click one, Shift+click a run of them)
  • A flame chart of the ticks shown (the wheel zooms about the pointer), and Resources, Bottom-up, Call tree and Events tables; frames and rows open their Lua line, resources their manifest
  • / filters frames by name; Compare reads an earlier save and shows each resource's time per tick beside it, in red when it got a fifth slower
  • The game's own profiler can't be recorded: FiveM turns profiler off in its production mode

Crashes

Crashes (command palette) explains why things crashed:

  • This PC: each game crash from FiveM's logs and crash reports: where it crashed, the likeliest cause, the resources started and this workspace's files loaded just before (linked), script errors, and the crash report's own notes
  • Players: every player's game crash the server logged (txAdmin), grouped by where it happened, so one interior or resource behind many crashes stands out
  • Server: FXServer's own crashes, with the resources restarted just before
k3studio › README.md Fun factIdles at about 0% CPU: it only draws when something changes Markdown qbx-lua-ls

Click or press Esc to close