Jump to content

Recommended Posts

Posted

Hello,

I would like to work on the development of GTA-V servers on the C# Bridge.
So I have created my first resource, but I get an error in the server log when I want to start it.

 

-> Starting firstresource resource..
firstresource: loading scripts.. found 1 script(s)
-> Error starting 'firstresource'
System.NullReferenceException: Object reference not set to an instance of an object.
   at bool GTANetworkInternals.GameServer.StartResource(string resourceName, string parent)

 

My Code

using System;
using GTANetworkAPI;
namespace firstresource
{
    public class Main : Script
    {
        public Main()
        {
            Console.WriteLine("Dieser Test war erfolgreich");
        }
    }
}

 

Anyone can help me?

Posted (edited)

Please show us your meta.xml and settings.xml. I'd be more than surprised if changing the code into the previous reply solves your issue.

Edited by introzen

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...