Jump to content

Recommended Posts

Posted (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 by Spechen
Posted

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

 

  • Spechen changed the title to [Solved] Enable CSharp in the conf add some unexpected behaviour

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...