Adds config option for traffic in COOPAPI
And removes the welcome message in NON INTERACTIVE mode (Press F9 is not possible in that compilation mode)
This commit is contained in:
@ -228,11 +228,12 @@ namespace CoopClient
|
||||
/// <summary>
|
||||
/// ?
|
||||
/// </summary>
|
||||
public static void Configure(string playerName, bool shareNpcsWithPlayers, int streamedNpcs, bool debug = false)
|
||||
public static void Configure(string playerName, bool shareNpcsWithPlayers, int streamedNpcs, bool disableTrafficSharing, bool debug = false)
|
||||
{
|
||||
Main.MainSettings.Username = playerName;
|
||||
Main.ShareNpcsWithPlayers = shareNpcsWithPlayers;
|
||||
Main.MainSettings.StreamedNpc = streamedNpcs;
|
||||
Main.DisableTraffic = disableTrafficSharing;
|
||||
#if DEBUG
|
||||
Main.UseDebug = debug;
|
||||
#endif
|
||||
|
@ -80,8 +80,9 @@ namespace CoopClient
|
||||
{
|
||||
RelationshipGroup = World.AddRelationshipGroup("SYNCPED");
|
||||
Game.Player.Character.RelationshipGroup = RelationshipGroup;
|
||||
|
||||
#if !NON_INTERACTIVE
|
||||
GTA.UI.Notification.Show(GTA.UI.NotificationIcon.AllPlayersConf, "GTACOOP:R", "Welcome!", "Press ~g~F9~s~ to open the menu.");
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !NON_INTERACTIVE
|
||||
|
Reference in New Issue
Block a user