๐ŸŒ˜NightVision

A comprehensive night vision system for FiveM servers that includes battery management, animations, and a modern UI interface.

Features

  • Realistic night vision effect with battery system

  • Smooth animations for putting on/off night vision

  • Battery drain system with configurable drain time

  • Battery replacement system with animations

  • Modern UI showing battery level, temperature, coordinates, and zone information

  • Framework support for both QBCore and ESX

  • Configurable items and battery drain settings

Installation

  1. Download the resource

  2. Place it in your resources folder

  3. Add ensure hate-nvision to your server.cfg

  4. Add the required items to your framework's shared items:

['night_vision'] = {
    name = 'night_vision',
    label = 'Night Vision Goggles',
    weight = 1000,
    type = 'item',
    image = 'night_vision.png',
    unique = true,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'Military grade night vision goggles'
},
['nvg_battery'] = {
    name = 'nvg_battery',
    label = 'NVG Battery',
    weight = 500,
    type = 'item',
    image = 'nvg_battery.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'Replacement battery for night vision goggles'
}

Configuration

Framework Selection

Config.Framework = 'qbcore' -- Options: 'qbcore' or 'esx'

Item Configuration

Config.NVGItem = 'night_vision' -- Item name for night vision goggles
Config.BatteryItem = 'nvg_battery' -- Item name for battery replacement

Battery Settings

Config.BatteryDrainTime = 30 -- Battery life in minutes (full charge)
Config.BatteryDrainInterval = 1000 -- Battery drain check interval in ms

Usage

  1. Use the night vision goggles item to activate/deactivate night vision

  2. When battery is low, use the battery item to replace it

  3. Press ESC to deactivate night vision

  4. The UI will show:

    • Current battery level

    • Temperature (requires hate-temp export)

    • Current coordinates

    • Current zone name

    • Game time

Dependencies

  • ox_lib

  • hate-temp (for temperature display)

  • QBCore or ESX framework

Notes

  • The script is protected with escrow

  • Server and client files are encrypted

  • Requires proper item setup in your framework's shared items

  • Temperature display requires the hate-temp resource

Support

For support, please contact us through our support channels.

Security Notice

This script is protected by FiveM's escrow system. The client and server-side code is encrypted and cannot be modified.

Last updated