Lary Gary Night And Thermal [QB]
LINK
VIDEO

-
Smart Helmet Equipping: Automatic equipping and unequipping of helmets based on the active vision state. It ensures seamless immersion without the need for manual toggling.
-
Cooldown Mechanisms: Ensure balance in gameplay by introducing cooldowns after each use, making sure that the powerful vision tools aren’t abused.
-
Anti-Spam Notification System: Inform players about the status of their vision modes without overwhelming them with constant notifications. Built-in checks ensure that messages are dispatched at reasonable intervals.
-
Seamless Integration with QB-Core: Easy integration into the QB-Core framework ensures compatibility and smooth operation.
-
State Initialization:
- Variables defining the state of the vision modes, cooldowns, and notification systems are initialized at the script’s onset.
- This includes checking if the helmet is equipped, timers for night and thermal vision modes, and the last time a notification was dispatched.
-
Toggle Vision Mechanism:
- Players can easily switch between Night and Thermal Vision modes.
- The script ensures the player has the necessary item (Night Vision Helmet) before activating the vision mode.
- It also checks for active modes and warns the player if they’re trying to activate one vision mode while another is already on, ensuring no conflicts between the modes.
-
Helmet Management:
- Helmets are an integral part of the vision experience. The script manages the visual appearance of the player by equipping and removing helmets based on the vision mode’s state.
- Different component IDs can be set for the helmet, allowing server administrators to customize the appearance based on their server’s theme or preference.
-
Notification System:
- A built-in system uses QBCore’s notification mechanism to inform players of various states – whether they’re missing an item, trying to activate a vision mode during its cooldown, or when a mode is activated or deactivated.
- To avoid spamming the player with repetitive notifications, an anti-spam check ensures a gap between successive messages.
-
Threading for Real-time Checks:
- Multiple threads are created to handle different functionalities:
- One monitors the duration timers for the active vision modes and handles the cooldowns, providing real-time feedback and actions.
- Another listens for the player’s input, waiting for commands to toggle the different vision modes.
-
Customizable Controls:
- Server administrators have the flexibility to set specific key bindings for toggling both Night and Thermal Vision modes, ensuring that the controls fit the server’s overall control scheme.
|Code is accessible |YES (Escrow)|
|Subscription-based |No|
|Lines (approximately) |N/A|
|Requirements |FiveM Server|
|Support |Yes|