Sign in to follow this  

Server throws access violation on chat input

Recommended Posts

I run a local server with default settings except that C# is enabled with one script:

using System;
using GTANetworkAPI;

namespace Test {
    public class Main : Script {

        public Main() {


        public void OnResourceStart() {
            NAPI.Util.ConsoleOutput("Test resouce started.");

        public void OnPlayerDeath(Client client, Client killer, uint reason) {
            client.SendChatMessage("You dided.");
            client.MovePosition(new Vector3(0, 0, 82), 0);

        public void test(Client sender) {

I can connect to the server but as soon as I enter something into the chat (a command for example), the game crashes:

  Message = Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

I'm new to working with ragemp so any help would be appreciated.

Share this post

Link to post
Share on other sites

Got the same exception problem when setting up my server. After all loadings it throws this:


System.AccessViolationException” in Bootstrapper.dll


Share this post

Link to post
Share on other sites

Okay i fixed this by

1-Go to NUGet package manager and uninstall GTAnetworkAPI

2-Remove Bootstrapper.dll

3-Clean & rebuild solution

4-Add Bootstrapper.dll as a reference again from the server/bridge/runtime folder.

hope i helped.

Share this post

Link to post
Share on other sites
Posted (edited)



anyone can help? I cant read name field from sender

Edited by migzi

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.