Whispers88
Allows players with permission to become truly invisible

Supported Games
GameServerKingsGameServerKings

Vanish allows players with permission to become completely invisible. Players, turrets, helicopters, NPCs, etc. will not be able to see, hear, or touch you!

Note: While vanished, you can hear players but they will be unable to hear you. You are invisible to them and essentially do not exist to them. Even if they walk right through you they DO NOT know of your existence. With the exception of you making sounds such as shooting a gun, they will hear the bullet - hit effect.

Permissions

  • vanish.allow -- Required to go invisible
  • vanish.unlock -- Allows an invisible playe to unlock all locks
  • vanish.damage -- Allows an invisible player to damage other entities. Requires "Use OnEntityTakeDamage hook" config option to be set to true.
  • vanish.permanent -- Permanently forces a player to be vanished
  • vanish.invviewer -- Allows use of /inv command and viewing containers using the interaction feature

Commands

  • vanish -- Toggle invisibility on/off for self
  • inv -- View a players inventory using args steamID or username

Interaction

Being authed on toolcupboards and some client bugs can cause issues when interacting with containers and doors. The interaction feature eliviates this issue and adds some additional funcionality.

**While in vanish a vanished player can use their bound reload key to interact with with various objects including containers, doors, vehicles and players. **This works via ray cast meaning most commonly you will push the R key to interact with the object you are looking at in game.

Interactive Objects:

  • Players - Looking at a player and pressing R will view that players inventory
  • Doors - Looking at a door and pressing R will toggle it open or closed bypassing all locks in place.
  • Containers - This allows all containers to be viewed bypassing all lock and toolcupboard requirments
  • Vehicles - Pressing R while looking at a vehicle will mount the vanished player to the closesest mounting position relative to where they are looking bypassing all locks.

Configuration

{
  "NoClip on Vanish (runs noclip command)": true,
  "Inventory view cmd": [
    "inv",
    "invspy"
  ],
  "Use OnEntityTakeDamage hook (Set to true to enable use of vanish.damage perm. Set to false for better performance)": false,
  "Use CanUseLockedEntity hook (Allows vanished players with the perm vanish.unlock to bypass locks. Set to false for better performance)": true,
  "Automatically vanish players (with the vanish.use perm) on player connect": true,
  "Automatically vanish players (with the vanish.use perm) on player disconnect": true,
  "Keep a vanished player hidden on disconnect": true,
  "Bypass violation checks for vanished players": true,
  "Turn off fly hack detection for players in vanish": true,
  "Disable metabolism in vanish": true,
  "Reset hydration and health on un-vanishing (resets to pre-vanished state)": true,
  "Enable vanishing and reappearing sound effects": true,
  "Make sound effects public": false,
  "Enable chat notifications": true,
  "Sound effect to use when vanishing": "assets/prefabs/npc/patrol helicopter/effects/rocket_fire.prefab",
  "Sound effect to use when reappearing": "assets/prefabs/npc/patrol helicopter/effects/rocket_fire.prefab",
  "Enable GUI": true,
  "Icon URL (.png or .jpg)": "https://i.ibb.co/3rZzftx/yL9HNRy.png",
  "Image Color": "1 1 1 0.8",
  "Image AnchorMin": "0.18 0.017",
  "Image AnchorMax": "0.22 0.09"
}

Localization

For Developers

API

void Disappear(BasePlayer player)
void Reappear(BasePlayer player)
bool IsInvisible(BasePlayer player)

Hooks

void OnVanishReappear(BasePlayer player)
void OnVanishDisappear(BasePlayer player)

Credits

  • Wulf, the original author of this plugin
  • Nogrod, for all the help along the way. Cheers!
  • Jake_Rich and nivex, for helping maintain the plugin
  • dcode, for the awesome icon

MIT License


Copyright (c) 2019 Wulf


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.