Jump to content

hitmany

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by hitmany

  1. Hello, I am trying to load interior, after loading IPLs, I got this

    spacer.png

    How to fix? I get IPLs from other mod. But this mod also required to change props colors, I cant find prop color function in rageMP

     

    Its Doomsday Facility Interior

  2. On 5/8/2020 at 1:46 PM, MrPancakers said:

    If by stable branch you mean the prerelease branch then it's already there. The client connects to either 1.1 or 0.3.7 servers, it comes down to if the server is still running 0.3.7 server files or 1.1

    Right now all players switch to 0.3.7

    And I see message in server console, that 1.1 server will not be listed in master server

     

    So for good player population, I must work in 0.3.7

  3.  

    My code didnt compile with "Player" variable, until I changed Visual Studio project properties

    I uninstall nuget GTANetworkAPI package and make Reference to Bootstrapper.dll from server-files/dotnet/runtime

    I change Project Settings:

    • Target Framework .Net Core 3.1
    • Platform Target x64

    And now, when I connecting to the server I got same error in Server console

    Could not load type 'GTANetworkAPI.Client' from assembly 'Bootstrap

    My code right now

    using System;
    using GTANetworkAPI;
    
    namespace GTAServer
    {
        public class Main : Script
        {
            [ServerEvent(Event.ResourceStart)]
            public void OnResourceStart()
            {
                NAPI.Util.ConsoleOutput("Resource started");
            }
    
            [ServerEvent(Event.PlayerConnected)]
            public void OnPlayerConnected(Player player)
            {
                NAPI.Util.ConsoleOutput($"{Player.Name} has connected");
                player.SendChatMessage("Welcome to our server!");
            }
    
        }
    }

     

    • Like 1
  4. Hello, my simple C# code cant compile

     

    Break "System.TypeLoadException: 'Could not load type 'GTANetworkAPI.Client' from assembly 'Bootstrapper, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.'"

     

    Code

    using System;
    using GTANetworkAPI;
    
    namespace Server
    {
        public class Main : Script
        {
            [ServerEvent(Event.ResourceStart)]
            public void OnResourceStart()
            {
                NAPI.Util.ConsoleOutput("Server started");
            }
    
            [ServerEvent(Event.PlayerConnected)]
            public void OnPlayerConnected(Client player)
            {
                //NAPI.Util.ConsoleOutput($"{Player.Name} has connected");
                player.SendChatMessage("Welcome to our server!");
            }
    
        }
    }

     

  5. Hello, I am working with Cops & Robbers Gamemode 0.11 By Protocole

    I noticed this gamemode writed on Javascript only, no C# code

    I trying to fix login form, but I cant debug any errors

    How to debug HTML, JS code?

×
×
  • Create New...