Fake Night Vision

Fake Night Vision 1.0.0

Gives players a private sky with fake time and weather without changing it for everyone else
Fake Night Vision 2 - Made with Clipchamp.gif


This plugin gives players their own personal sky, faking daylight, fog, rain, or clouds while the server remains unchanged. Perfect for giving vips better visibility at night or running private visual effects without affecting others. Fully configurable with presets, permissions, cooldowns, and auto-activation options.

Features

  • Supports multiple presets that you tie to separate permissions, so different player groups can see completely different “night-vision” skies.
  • Per-preset control over the hour of day, fog, rain, clouds, and wind allows you to create exactly the ambience you want without affecting the server's actual environment for everyone else.
  • Gives a dedicated HUD button players can click to toggle night-vision.
  • Shows a small red status icon while night-vision is active, so players always know when the effect is locked.
  • Optionally auto-activates night-vision the moment a player joins the server, based on their assigned preset.
  • Built-in scheduler can turn night-vision on and off at specific in-game hours you choose.
  • Per-player cooldown stops spam-toggling.
  • Each preset can automatically turn off after a set number of seconds, making it ideal for temporary effects or time-limited perks.
  • Admin-only console command lets you apply a custom sky to any online player, with optional timer and full control over weather settings.
  • All client changes are sent with EnvSync packets only to targeted players; the world time and weather stay untouched for everyone else.

Permissions

  • fakenightvision.<suffix> - Grants access to a specific night vision preset. The <suffix> matches the Permission Suffix defined in that preset (e.g. default, vip, premium, etc).

Commands

  • /fakenv - Chat command for players to toggle their night vision mode, if their preset allows manual toggling.
  • fakenv.set <playerNameOrId> <time> <duration> [fog] [rain] [clouds] [wind]- Console command for admins to force night vision for a target player with full control over time and weather parameters.
    • playerNameOrId - The name or SteamID of the target player.
    • time - The in-game time to simulate (e.g., 1.5 for 1:30 AM).
    • duration - How long the fake environment should remain (in seconds). 0 means permanent until manually toggled off.
    • fog - (Optional) Fog level to apply (0–1).
    • rain - (Optional) Rain level to apply (0–1).
    • clouds - (Optional) Cloud level to apply (0–1).
    • wind - (Optional) Wind level to apply (0–1).

Configuration

JSON:
{
  "Version": "1.0.0",
  "Chat Command": "fakenv",
  "Date Used For EnvSync (m/d/yyyy)": "1/1/2025",
  "Presets": [
    {
      "Permission Suffix": "default",
      "Player Can Toggle": true,
      "Toggle Cooldown Seconds": 90.0,
      "Auto Enable On Connect": false,
      "Auto On At Hour (-1 = never)": -1.0,
      "Auto Off At Hour (-1 = never)": -1.0,
      "Unlock After Seconds (0 = permanent)": 0.0,
      "Time (0-24)": 2.0,
      "Fog (0-1)": 0.0,
      "Rain (0-1)": 0.0,
      "Clouds (0-1)": 0.05,
      "Wind (0-1)": 0.05
    },
    {
      "Permission Suffix": "vip",
      "Player Can Toggle": true,
      "Toggle Cooldown Seconds": 90.0,
      "Auto Enable On Connect": true,
      "Auto On At Hour (-1 = never)": 19.0,
      "Auto Off At Hour (-1 = never)": 6.0,
      "Unlock After Seconds (0 = permanent)": 0.0,
      "Time (0-24)": 1.5,
      "Fog (0-1)": 0.1,
      "Rain (0-1)": 0.0,
      "Clouds (0-1)": 0.15,
      "Wind (0-1)": 0.1
    }
  ]
}
  • Chat Command - The chat command players can use to toggle their night vision effect.
  • Date Used For EnvSync - Base calendar date used internally to calculate time for syncing the fake environment.
  • Presets - A list of night-vision configurations, each with its own permission suffix and weather settings.
Inside each preset:
  • Permission Suffix - The suffix used to generate the permission string required for accessing this preset (e.g., fakenv.vip).
  • Player Can Toggle - Whether players are allowed to manually toggle the night vision effect.
  • Toggle Cooldown Seconds - Time a player must wait before toggling night vision again.
  • Auto Enable On Connect - If true, night vision is automatically enabled when the player joins the server.
  • Auto On At Hour - Specific in-game hour to auto-enable the effect (-1 disables auto-on).
  • Auto Off At Hour - Specific in-game hour to auto-disable the effect (-1 disables auto-off).
  • Unlock After Seconds - How long the night vision stays active before disabling automatically (0 = never disables).
  • Time - The in-game time to simulate for this preset (e.g., 2 = 2 AM).
  • Fog - The level of fog to apply with the preset (0 = no fog, 1 = max fog).
  • Rain - The level of rain intensity to simulate (0 = no rain, 1 = heavy rain).
  • Clouds - Cloud coverage level (0 = clear skies, 1 = overcast).
  • Wind - Wind strength simulated for the effect (0 = no wind, 1 = max wind)

Localization

JSON:
{
  "Error.NoPermission": "You do not have permission to perform this action.",
  "Error.AdminOnly": "Admin privileges required.",
  "Error.ToggleDisabled": "You do not have permission to switch Night-Vision on or off.",
  "Error.InvalidTime": "Invalid time (expected 0 – 24).",
  "Error.InvalidDuration": "Invalid duration (seconds).",
  "Error.PlayerNotFound": "Player '{0}' not found or not online.",
  "Info.CooldownRemaining": "Please wait {0} before enabling again.",
  "Info.NvEnabled": "Night-vision mode enabled (time {0}).",
  "Info.NvDisabled": "Night-vision mode disabled.",
  "Help.SetUsage": "Usage: fakenv.set <playerNameOrId> <time> <duration> [fog] [rain] [clouds] [wind]",
  "Log.SetSuccess.Admin": "Applied Night-Vision to {0} (time {1}, {2}).",
  "Notify.SetSuccess.Player": "Night-vision mode enabled (time {0}{1})."
}
  • Like
Reactions: (Manky)sieve
Author
VisEntities
License duration
Unlimited
Price
7.99 USD
First release
Last update

Ratings

0.00 star(s) 0 reviews

Also by VisEntities

Back
Top
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin. Parameters in < > are required, while [ ] are optional.
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Ensure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart