Maxafrost Posted January 27, 2019 Share Posted January 27, 2019 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() { } [ServerEvent(Event.ResourceStart)] public void OnResourceStart() { NAPI.Util.ConsoleOutput("Test resouce started."); } [ServerEvent(Event.PlayerDeath)] public void OnPlayerDeath(Client client, Client killer, uint reason) { client.SendChatMessage("You dided."); client.MovePosition(new Vector3(0, 0, 82), 0); } [Command("test")] public void test(Client sender) { sender.SendChatMessage(sender.Position.ToString()); } } } I can connect to the server but as soon as I enter something into the chat (a command for example), the game crashes: System.AccessViolationException HResult=0x80004003 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. Link to comment Share on other sites More sharing options...
Hantick Posted February 6, 2019 Share Posted February 6, 2019 Got the same exception problem when setting up my server. After all loadings it throws this: Quote System.AccessViolationException” in Bootstrapper.dll Link to comment Share on other sites More sharing options...
hash_ Posted February 8, 2020 Share Posted February 8, 2020 I have the same issue, any solution? Link to comment Share on other sites More sharing options...
hash_ Posted February 8, 2020 Share Posted February 8, 2020 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. 1 Link to comment Share on other sites More sharing options...
migzi Posted May 10, 2020 Share Posted May 10, 2020 (edited) anyone can help? I cant read name field from sender Edited May 10, 2020 by migzi Link to comment Share on other sites More sharing options...
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