Skip to content

Commit

Permalink
only enable mp character stuff if experimental features are enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGrobbe committed May 15, 2018
1 parent 0ea71c1 commit 834be6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vMenu/menus/PlayerAppearance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ private void CreateMenu()
menu.AddItem(walkingStyle);

// Bind items to the submenus.
if (cf.IsAllowed(Permission.PACustomize))
if (cf.IsAllowed(Permission.PACustomize) &&
// only enable it if experimental features are turned on
GetResourceMetadata(GetCurrentResourceName(), "experimental_features_enabled", 0).ToString() == "1")
{
CreateMpPedMenu(mpCharMenu); // loads all menu items and adds event listeners.
menu.BindMenuToItem(mpCharMenu, mpCharMenuBtn);
Expand Down

0 comments on commit 834be6f

Please sign in to comment.