How to install C# script on my server

Hi I have a question.We have a server, and we tried to add C# scripting there, but it didn’t work.How can we do that?I’d appreciate it if you could help.

Hi,

In a ressource, you can’t directly start a C# script, you need to create a library, look here:

In your __resource.lua, just put:

server_script 'your_library.dll'

Thanks for your help, but I asked how to set it up. What difference does it make if I do this for this script?Does Visual Studio server have to be installed on the computer?This is the script I’m talking about.[Release] Stance Modifier (crouch and prone)

Ok, the script is only a .cs file, you just need to create a project with Visual Studio (Just read the doc I sent above) and put the script into. Then you compile, and you have a .dll file.

You don’t need to have Visual Studio on your server, you can do it on your own computer and copy the file on your server.

1 Like

The name should end with .net.dll

1 Like

Yes I forgot that :yum: