A simple TUI for running any FiveM server and executing commands.
- via Scoop (Recommended)
# Add the extras bucket
scoop bucket add itschip https://github.com/itschip/scoop-bucket.git
# Install lazyfivem
scoop install itschip/lazyfivem
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
Go to the latest release page and download the corresponding version for your OS.
Create a config.yaml
to:
-
Unix-based OS:
- if
$XDG_CONFIG_HOME
is specified, then:$XDG_CONFIG_HOME/lazyfivem/
- otherwise
$HOME/.config/lazyfivem/
- if
-
Darwin:
$HOME/Library/Application Support/lazyfivem/
-
Plan 9:
$home/lib
-
Windows:
C:\Users\USERNAME\AppData\Roaming\lazyfivem\
aka.%APPDATA%\lazyfivem\
Example:
- Windows:
mkdir $APPDATA\lazyfivem # Then create config.yaml inside
- Linux:
mkdir ~/.config/lazyfivem cd ~/.config/lazyfivem touch config.yaml
You can change the config directory by exporting the LAZYFIVEM_CONFIG_HOME
environment variable. You can then place the config.yaml
file there.
Create a new entry in the config.yaml
file as follows:
Server Name: '<command to start the server>'
Server Name: 'PATH\TO\SERVER\start.bat'
Example:
Yet Another RP Server: 'D:\FxServer\start.bat'
Server Name: 'PATH/TO/SERVER/start.sh'
Example:
Yet Another RP Server: 'PATH/TO/SERVER/start.sh'
Run lazyfivem
in any terminal.
- 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
local lazyfivem = Terminal:new({
cmd = "lazyfivem",
direction = "float",
count = 15,
float = {
border = "double",
}
})
function _lazyfivem_toggle()
lazyfivem:toggle()
end