Skip to content

A simple TUI for FiveM to run any server and execute commands.

Notifications You must be signed in to change notification settings

itschip/lazyfivem

Repository files navigation

lazyfivem

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

Installation

Windows

  • via Scoop (Recommended)
# Add the extras bucket
scoop bucket add itschip https://github.com/itschip/scoop-bucket.git

# Install lazyfivem
scoop install itschip/lazyfivem

Linux

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:

  • Unix-based OS:

    • if $XDG_CONFIG_HOME is specified, then: $XDG_CONFIG_HOME/lazyfivem/
    • otherwise $HOME/.config/lazyfivem/
  • Darwin: $HOME/Library/Application Support/lazyfivem/

  • Plan 9: $home/lib

  • Windows: C:\Users\USERNAME\AppData\Roaming\lazyfivem\ aka. %APPDATA%\lazyfivem\

  • Read more

Example:

  • Windows:
    mkdir $APPDATA\lazyfivem
    
    # Then create config.yaml inside
  • Linux:
    mkdir ~/.config/lazyfivem
    
    cd ~/.config/lazyfivem
    
    touch config.yaml

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

  • TAB - Switches focus between the sidebar and command line
  • ENTER - Starts the selected server in the sidebar, and executes a command in the command line.
  • UP/DOWN ARROW - Scrolls up/down in the sidebar
  • LEFT/RIGHT ARROW - Moves cursor left/right in the command exec lin
  • Ctrl-C - Quit program

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