Skip to content

Commit

Permalink
Merge pull request #300 from NickReagan/master
Browse files Browse the repository at this point in the history
Added Permission for Show Ped/ Prop Demensions etc.
  • Loading branch information
XdGoldenTigerOfficial authored Feb 2, 2024
2 parents ae5269d + 0148559 commit 529c9c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions SharedClasses/PermissionsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ public enum Permission
MSRestoreWeapons,
MSDriftMode,
MSEntitySpawner,
MSDevTools,
#endregion

// Voice Chat
Expand Down
2 changes: 1 addition & 1 deletion vMenu/menus/MiscSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private void CreateMenu()
}

// model outlines
if (!vMenuShared.ConfigManager.GetSettingsBool(vMenuShared.ConfigManager.Setting.vmenu_disable_entity_outlines_tool))
if ((!vMenuShared.ConfigManager.GetSettingsBool(vMenuShared.ConfigManager.Setting.vmenu_disable_entity_outlines_tool)) && (IsAllowed(Permission.MSDevTools)))
{
developerToolsMenu.AddMenuItem(vehModelDimensions);
developerToolsMenu.AddMenuItem(propModelDimensions);
Expand Down
1 change: 1 addition & 0 deletions vMenuServer/config/permissions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ add_ace builtin.everyone "vMenu.MiscSettings.RestoreAppearance" allow
add_ace builtin.everyone "vMenu.MiscSettings.RestoreWeapons" allow
add_ace builtin.everyone "vMenu.MiscSettings.DriftMode" allow
add_ace group.moderator "vMenu.MiscSettings.EntitySpawner" allow # Probably not the best idea to give this feature for everyone
add_ace group.developer "vMenu.MiscSettings.DevTools" allow # Probably not the best idea to give this feature for everyone

####################################
# VOICE CHAT OPTIONS MENU #
Expand Down

0 comments on commit 529c9c3

Please sign in to comment.