# Integrating the NVAPI

You just need to do two things:

1) Tag your item as NVITEM. Here's an example:

```
module Base
{
  item NVAviator
  {
    Tags             = NVITEM,
    DisplayName      = NVAviator,
    DisplayCategory  = Accessory,
    ClothingItem     = Glasses_Aviators,
    Type             = Clothing,
    BodyLocation     = Eyes,    
    Icon             = GlassesAviator,    
  }
}
```

2) Assign a specific key to toggle the night vision view:

```
local nvctrl = require "NVAPI/ctrl/instance"

Events.OnKeyPressed( function(key)
  if key == 20 then
    nvctrl:toggle()
  end
end )
```

And that's it. 

Everything is managed by the API
