Kaite Posted April 13, 2020 Posted April 13, 2020 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 { [ServerEvent(Event.ResourceStart)] public void OnResourceStart() { NAPI.Util.ConsoleOutput("Main resource just started, yay!"); } } } Maybe its just a tiny part but i think i forgot sth.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now