Cant type commands into FXServer terminal

Hey there!

I got a little issue. When i start my FXServer.exe i cant type any commands directly into the console. I tried to run it as a Terminal in VS Code, inside powershell or regularly in cmd.exe. Of course i can write commands into the txAdmin web interface but that interrupts my workflow.

In the past i had a productive RP server where i where able to type commands into the console, even with autocompletion! Sadly i forgot how i achieved this.

Every help is highly appreciated! Thank you very much!

1 Like

I finally got it! So if you want to get to type into your server console, even with autocompletion, do this:

Run in standalone cmd / powershell:

  1. In CMD, navigate to your server data location (i.e. cd C:/FXServer/txData/CFXDefaultFiveM_64F878.base/)

  2. Then run your FXServer from there (i.e. C:\FXServer\server\FXServer.exe +exec server.cfg)

In advance, if you want to create a task for VS Code so you can have the console in there, you do the following:

  1. In VS Code, hit F1 (searchbar will open) and then search for “configure task”
  2. tasks.json will open
  3. Replace task.json with the following (make sure you adjust the paths):
 {
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "FXServer",
            "type": "shell",
            "command": "cd C:/FXServer/txData/CFXDefaultFiveM_64F878.base/ && C:/FXServer/server/FXServer.exe +exec server.cfg"
        }
    ]
}
  1. To run the task, go into VS Code search bar and search for "task ", select your created task and the terminal with your server will start

Happy Coding!

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.