Code Monkey home page Code Monkey logo

plugin-health's Introduction

NFive

NFive Logo

License Discord Build Status Release Version

NFive is a complete plugin framework for GTAV FiveM servers built entirely in managed C#. This project aims to replace existing FiveM server resources with a single managed framework to build upon.

On its own NFive provides no extra game mechanics or functionality, all extra features are introduced via plugins.

Currently a work in progress

This project is still subject to breaking changes at anytime, use at your own risk!

Usage

It is strongly recommended that you use NFive Package Manager (nfpm) to install and manage NFive.

See the NFive Getting Started documentation for more information.

Quick Start

  1. Download nfpm and place it in an empty directory.

  2. Run nfpm setup . and answer the prompts to automatically download and install a FiveM server and NFive into the current directory.

  3. Install the plugins you want to use on your server with nfpm install <plugin>, see nfpm search and the NFive plugin hub for available plugins.

  4. Run nfpm start to boot the server and try connecting to localhost with your FiveM client.

    See the NFive Database Setup documentation for how to correctly configure the your MySQL server.

Development

Building NFive will require Visual Studio 2017. A MySQL database is required for storage, MariaDB is recommended.

This resource currently replaces all stock server resources; make sure you remove them from your configuration. The server will always try to load sessionmanager, even if it is not in your configuration, so you must delete or rename the resource folder.

  1. Clone this repository inside of your FiveM server's resources directory:

    git clone https://github.com/NFive/NFive.git nfive
    cd nfive
  2. Build the project in Visual Studio.

  3. Edit your server.cfg file to include the following line below your existing configuration:

    start nfive
  4. Edit config\database.yml with your database connection information as needed.

Note: For full Unicode support you will need to manually preconfigure your MySQL server's default character set. For MySQL/MariaDB add --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_520_ci to the server arguments before the database is created. See the documentation for details.

Migrations

Its strongly recommended you use nfpm migrate for automated migrations.

Manual

  1. Drop the existing database.

  2. Open the Package Manager Console in Visual Studio: View > Other Windows > Package Manager Console

  3. Run following command with your database connection information:

    Add-Migration -Name Init -Force -ProjectName Server -ConnectionString "Host=db;Port=3306;Database=fivem;User Id=root;Password=password;CharSet=utf8mb4;SSL Mode=None" -ConnectionProviderName MySql.Data.MySqlClient

plugin-health's People

Contributors

joebiellik avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.