
self.night = 0;
self thread toggleNV();

toggleNV()
{
for(;
if(self.night == 0)
{
self _SetActionSlot( 1, "nightvision" );
self iPrintlnBold("Nightvision: ^2ON");
self.night = 1;
break;
}
if(self.night == 1)
{
self _SetActionSlot( 1, "none" );
self iPrintlnBold("Nightvision: ^1OFF");
self.night = 0;
break;
}
}
}

self.night = 0;
self thread toggleNV();

toggleNV()
{
for(;
if(self.night == 0)
{
self _SetActionSlot( 1, "nightvision" );
self iPrintlnBold("Nightvision: ^2ON");
self.night = 1;
break;
}
if(self.night == 1)
{
self _SetActionSlot( 1, "none" );
self iPrintlnBold("Nightvision: ^1OFF");
self.night = 0;
break;
}
}
}

self _SetActionSlot( 1, "nightvision" );
self _SetActionSlot( 1, "nightvision" );
it breaks the loop and then next time you open the mod it goes to the other one b/c of the variable.
self _SetActionSlot( 1, "nightvision" );
self _SetActionSlot( 1, "nightvision" );
Copyright © 2026, NextGenUpdate.
All Rights Reserved.