Please Help, Write guide setup C# Server-side, Client-side

I’m find next instructions

using CitizenFX.Core;
using System;

namespace ClassLibrary1
{
    public class Class1 : BaseScript
    {
        public Class1() 
        {
            Console.WriteLine("fai2l");
            Debug.Write("TES1T");
            EventHandlers["onResourceStart"] += new Action<dynamic>(OnResourceStart);
        }

        private void OnResourceStart(dynamic obj)
        {
            Console.WriteLine("fail");
            Debug.Write("TEST");
        }
    }
}

in __resource.lua

server_script 'server.dll'

Don’t work, help me how setup c# server-side / client-side

ps. Server-Wrapper - write error’s console

rename it to server.net.dll the file too! :slight_smile:

1 Like

Thanks, I’m find guide there https://github.com/thers/fr-docs/blob/master/Guides/CSharpScriptingEnvironmentSetup.md

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.