NFive

NFive

  • Docs
  • Pomoc
  • API
  • Pluginy
  • GitHub
  • Languages iconČeština
    • English
    • Español
    • Norsk
    • Português (Brasil)
    • Pomozte Nám Překládat

›Jak Začít

Jak Začít

  • Přehled
  • Komponenty
  • Nastavení datů
  • Server setup
  • Instalace Pluginů
  • Administrativa
  • Řešení Problémů

Nastavení Pluginů

  • Přehled
  • Reference Příkazů

Vývoj Pluginů

  • Přehled
  • Nastavení
  • Hub
  • Definition
  • Server Side

    • Life Cycle
    • Controller
    • Configurable Controller
    • Dependency Injection
    • Database Access
    • RCON

    Client Side

    • Life Cycle
    • Service
Translate

Server setup

N5 si klade za cíl velmi snadno nastavit a nakonfigurovat, takže si můžete rychle nastavit a spouštět server.

Rychlé nastavení

The recommended and easiest way to quickly install a FiveM server and setup NFive is to use the cross platform NFive Plugin Manager (nfpm) tool:

  1. Download the latest version of nfpm: https://dl.nfive.io/nfpm.exe

    nfpm.exe nemusí být nainstalován a může být spuštěn kdekoliv.

  2. Umístěte jej na místě, kde chcete nainstalovat server a otevřít okno terminálu/konzoly na tomto místě.

    nfpm will work exactly the same on Linux/macOS if used with Mono: mono nfpm.exe

  3. Spustit příkaz Nastavení nfpm setup a odpovědět na dotazy, včetně toho, jak se připojit k vaší databázi.

    nfpm will download the correct FiveM server for Windows or Linux depending on your platform.

Příklady provozu "nfpm setup na Windows"

You now have a complete server setup and can skip to Verifying Installation below.

ruční nastavení

To manually install NFive into a FiveM server, download the latest NFive release and extract it into your server's resources directory as nfive/.

The resource will need to be included in your FiveM server configuration to start it: start nfive

NFive kompletně nahrazuje všechny zdroje serveru na akciovém trhu FiveM; ujistěte se, že je z konfigurace odstraníte, pokud jste nějaké instalovali. FiveM server se vždy pokusí načíst zdroj named sessionmanager, i když není v konfiguraci serveru, takže musíte odstranit nebo přejmenovat složku zdrojů, pokud je přítomna.

Konfigurace

NFive configuration files are located in nfive/config/ with the primary configuration file being nfive.yml.

Database Connection

NFive requires a MySQL database with the connection details being stored in nfive/config/database.yml:

connection:
  host: localhost
  port: 3306
  database: fivem
  user: root
  password:
  charset: utf8mb4
  logging: false

Ověřování instalace

Your server directory should now contain a server directory with a structure and key files similar to:

server/
├── FXServer[.exe]
|── server.cfg
└── resources/
    └── nfive/
        ├── __resource.lua
        ├── nfive.yml
        ├── nfive.lock
        └── config/
            ├── nfive.yml
            └── database.yml

The Linux FiveM server is more deeply nested with the server files located at server/alpine/opt/cfx-server/.

Další kroky

Po spuštění příkazu setup budete mít prázdný server FiveM s nainstalovaným NFive, a dokud to bude možné spustit, bez pluginů bude server nepoužitelný pro hráče.

See the next page Installing Plugins for the basic plugins needed to use your server.

← Nastavení datůInstalace Pluginů →
  • Rychlé nastavení
  • ruční nastavení
    • Konfigurace
  • Ověřování instalace
  • Další kroky
NFive
Docs
Getting StartedPlugin ManagerAPI Reference
Community
Getting HelpProject ChatDiscord NFive chat
More
Plugin HubGitHubNFive stargazers on GitHub