Jump to content

Resource cannot be loaded


Recommended Posts

Hey, i'm new here in scripting for GTA:V

Now i got an error and i absolutly dont know how to fix.

If i try to start my resource it told me:

-> Starting GTA_V_RP resource..
GTA_V_RP: loading scripts.. found 1 script(s)
-> Error starting 'GTA_V_RP'
System.NullReferenceException: Object reference not set to an instance of an object.
   at bool GTANetworkInternals.GameServer.StartResource(string resourceName, string parent) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Constants\NativeData.cs:line 9


my Code is just:


using System;
using GTANetworkAPI;

namespace GTA_V_RP
    class Main : Script

        public void OnResourceStart()
            NAPI.Util.ConsoleOutput("Main resource just started, yay!");


Maybe its just a tiny part but i think i forgot sth.

Link to comment
Share on other sites

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...