Spechen Posted July 7, 2021 Posted July 7, 2021 (edited) Hello, I would like to know if we can disable all unexpected behaviour from enable the Cshard option in the conf.js ? For example, when added, i've got a "ERROR. Command not found" when I enter something in the chat And, when the player die, it automatically respawn it with 100hp at the FBI location Some other behaviour are potentially added by this configuration Here is my settings.xml for dotnet folder <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <resource src="SaltyChat" /> </config> Thank you Edited July 9, 2021 by Spechen
Spechen Posted July 7, 2021 Author Posted July 7, 2021 Solved: I found on the discord that some C# params are set to true, so in my only C# script, on the server constructor i set all this param to false : #region DisableUnexpectedCSharpBehaviour GTANetworkAPI.NAPI.Server.SetAutoRespawnAfterDeath(false); GTANetworkAPI.NAPI.Server.SetAutoSpawnOnConnect(false); GTANetworkAPI.NAPI.Server.SetGlobalDefaultCommandMessages(false); GTANetworkAPI.NAPI.Server.SetGlobalServerChat(false); #endregion
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