Skip to content

Commit

Permalink
Added invisibility tick so that no scripts can interfere and when you…
Browse files Browse the repository at this point in the history
… exit the noclip the invisibility does not go away
  • Loading branch information
Dreaming-Codes committed Mar 12, 2021
1 parent e8f4e1c commit a058870
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions vMenu/FunctionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ bool IsMpPedCreatorOpen()
{
SetSuperJumpThisFrame(Game.Player.Handle);
}

// Manage PlayerInvisible
if (MainMenu.PlayerOptionsMenu.PlayerInvisible && IsAllowed(Permission.POInvisible))
{
SetEntityVisible(Game.PlayerPed.Handle, false, false);
}

// Manage PlayerNoRagdoll
SetPedCanRagdoll(Game.PlayerPed.Handle, (!MainMenu.PlayerOptionsMenu.PlayerNoRagdoll && noRagdollAllowed) ||
Expand Down
2 changes: 1 addition & 1 deletion vMenu/menus/About.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private void CreateMenu()
{
Label = $"~h~{MainMenu.Version}~h~"
};
MenuItem credits = new MenuItem("About vMenu / Credits", "vMenu is made by ~b~Vespura~s~. For more info, checkout ~b~www.vespura.com/vmenu~s~. Thank you to: Deltanic, Brigliar, IllusiveTea, Shayan Doust and zr0iq for your contributions.");
MenuItem credits = new MenuItem("About vMenu / Credits", "vMenu is made by ~b~Vespura~s~. For more info, checkout ~b~www.vespura.com/vmenu~s~. Thank you to: Deltanic, Brigliar, IllusiveTea, Shayan Doust, zr0iq and DreamingCodes for your contributions.");

string serverInfoMessage = vMenuShared.ConfigManager.GetSettingsString(vMenuShared.ConfigManager.Setting.vmenu_server_info_message);
if (!string.IsNullOrEmpty(serverInfoMessage))
Expand Down

0 comments on commit a058870

Please sign in to comment.