Giter Site home page Giter Site logo

fivemserverstatus's Introduction

Fivem Server Status | Fivem Server Info | C# / Library



Information

Version 4.0 | .Net >= 7

Setup

Build this project with your spesific .Net version and get dlls and add reference your projects.


Usage

using EP.Fivem.ServerStatus;

var serverStatus = new FivemServerStatus();
var isOnline = await serverStatus.IsOnline("my533d");
var server = await serverStatus.Get("my533d"); // Server object

Developer: © ErenKrt

fivemserverstatus's People

Contributors

erenkrt avatar

Stargazers

virus al7rbi avatar Fujino N's avatar Razac avatar Francisco Flores avatar Kevin Azemi avatar

Watchers

James Cloos avatar Jeffrey Stendert avatar  avatar

fivemserverstatus's Issues

Problem with the code.

The code is great used it as a back burner for my own Fivem Launcher, However there is one problem. When the server is offline, it will open the program fine but the player count goes back to being "label1" and when the player updater counts down from 20 and hits 1 the program crashes. This being the error message from VS: "label1.Text = Server.GetOnlinePlayersCount().ToString() + " / " + Server.GetMaxPlayersCount();" "System.NullReferenceException: 'Object reference not set to an instance of an object.'"

btw the server offline status works perfect its just the player count that doesn't. (Shows up offline in red) When offline.

Few Questions:
Can you help me fix this problem maybe make it to when it hits 1 and crashes because the server is offline update the text to "Offline" for the player count? Instead of encountering this crash?

screenshot of when the program stops working: http://prntscr.com/s4fopz

This is my only problem with the code everything else works perfectly.

setup

how i can setup explain more pls

Issue setting up

Hi there,

Code works fine on the server code included but when i switch it we seem to run into this issue

image

Any ideas what is causing it. The code is correct.

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.