itschip / lazyfivem

A simple TUI for FiveM to run any server and execute commands.
5 stars 3 forks source link
citizenfx fivem go golang gui tui

lazyfivem

A simple TUI for running any FiveM server and executing commands.

Installation

Windows

Install lazyfivem

scoop install itschip/lazyfivem


### Linux
```bash
curl -Lo lazyfivem.tar.gz https://github.com/itschip/lazyfivem/releases/download/1.0.2/lazyfivem_1.0.2_Linux_32-bit.tar.gz

sudo tar xf lazyfivem.tar.gz -C /usr/local/bin lazyfivem

Via GitHub Releases

Go to the latest release page and download the corresponding version for your OS.

Configuration

Create a config.yaml to:

Example:

Custom Config Directory

You can change the config directory by exporting the LAZYFIVEM_CONFIG_HOME environment variable. You can then place the config.yaml file there.

Adding Servers

Create a new entry in the config.yaml file as follows:

Server Name: '<command to start the server>'

Windows:

Server Name: 'PATH\TO\SERVER\start.bat'

Example:

Yet Another RP Server: 'D:\FxServer\start.bat'

Linux:

Server Name: 'PATH/TO/SERVER/start.sh'

Example:

Yet Another RP Server: 'PATH/TO/SERVER/start.sh'

Usage

Run lazyfivem in any terminal.

Navigation

Example of Prisma in FiveM failing.

vmplayer_lqEQwqQhEj

Toggleterm

local lazyfivem = Terminal:new({
  cmd = "lazyfivem",
  direction = "float",
  count = 15,
  float = {
    border = "double",
  }
})

function _lazyfivem_toggle()
  lazyfivem:toggle()
end