Installation Steps
1
Install dependencies
ox_lib
Download ox_lib
2
Extract and place the resource
Extract the script from the zip file and place it into your standalone folder or a folder that starts before your scripts.
3
Add items to your inventory
Add the items below and the images from the
images folder (gasmask.png, nightvision.png) to your inventory.- ox_inventory
- qb-inventory
The images are provided in the
images folder that you downloaded. For ox_inventory, the client.event fields are required so using the item triggers the mask/goggles logic.4
Configure the resource
Open
config.lua and set your Framework, Inventory, and Notification. See the configuration section below for details.5
Add to server.cfg
Make sure ox_lib is started before the script.
Configuration
Below is the configuration file with explanations for each option.General Settings
Gas Mask
Ped mask component drawable ID (component slot 1). Adjust if your clothing pack uses different drawables.
Night Vision Goggles
Hat/prop index (prop slot 0). When night vision or thermal is active, the script uses
Clothing - 1 for the on state.Clothing drawable IDs may need adjusting per clothing pack. Equipping the gas mask also applies toxic/smoke entity proofs so the player is protected from gas and smoke effects.
