Garry's Mod

Garry's Mod

(not really) Fixed Night Vision
52 Comments
SPRÏNTY 1 Jul @ 9:09am 
Sorryyyyy :'3
Night_Sniper  [author] 1 Jul @ 9:05am 
well fuck
I really can't be fucked to fix whatever the heck else got broken with gmod updates
SPRÏNTY 1 Jul @ 8:11am 
okay nvm its making errors too-

[Fixed Night Vision] bad argument #3 to 'Add' (function expected, got nil)
1. Add - lua/includes/modules/hook.lua:31
2. unknown - lua/autorun/client/nvscript.lua:277
3. unknown - lua/includes/modules/concommand.lua:54
SPRÏNTY 1 Jul @ 8:04am 
tysm for the fix lol, it was getting very annoying
if it's not hard, could you add an option to remove the scanlines?
edl411 8 Apr @ 6:27pm 
Does anyone get a white slashed border on their screen when they turn this on?
I saw a YouTuber use this in a Adrian Shephard instead of Gordon type thing and he had this on fullscreen. How do I make it like that?
Gordon, GORDAN! 8 Nov, 2024 @ 4:50pm 
I think this mod would be worth the time to fix up, though if something IS indeed broken, It's a novel little flashlight alternative.
Gordon, GORDAN! 8 Nov, 2024 @ 4:49pm 
The mod is still working for me but it can be a bit finnicky with my addon lists
sometimes, I get a white cross across my screen and behind it, I don't seem to see any illumination.
Shadowman 13 Sep, 2024 @ 5:13pm 
to bind it to toggle is just bind key nv_togg
Secret 28 Jun, 2024 @ 7:16am 
how do I bind it tho
🦴 MeloDoggy 🦴 (she/her) 14 Jun, 2024 @ 9:50pm 
I feel a little silly now, while I didn't exactly fix the issue, I can just bind the toggle, so it's really more of a convenience thing than a real issue
🦴 MeloDoggy 🦴 (she/her) 14 Jun, 2024 @ 9:05pm 
isib also completely turns it out before the goggles actually go off, probably a problem with how darkness is detected then? or possibly *where* darkness is detected, as the eye trace mode does work, it's just a tad fickle by nature
🦴 MeloDoggy 🦴 (she/her) 14 Jun, 2024 @ 9:03pm 
seemingly works fine for me, sensitivity controls for auto enabling it seemingly change nothing though, some pitch-black areas just refuse to trigger ID
Night_Sniper  [author] 18 Apr, 2024 @ 11:19pm 
*sigh*

Gmod updates broke something again, most likely. If this persists, I will just delete the mod because I can no longer update it (thank Steam, and it's updates breaking netcode on old OSs)
< blank > 18 Apr, 2024 @ 3:27pm 
Getting same error as Suchomemus, similarly does not get fixed by disabling mods...
Suchomemus 18 Apr, 2024 @ 3:01am 
Hey, I was trying out your mod and started getting LUA errors as well. I've changed every setting I could to see if it would fix anything and disabled every single mod I have, but the error persists

[Fixed Night Vision] lua/autorun/client/nvscript.lua:211: bad argument #2 to 'SetTexture' (ITexture expected, got nil)
1. SetTexture - [C]:-1
2. v - lua/autorun/client/nvscript.lua:211
3. unknown - lua/includes/modules/hook.lua:96
Night_Sniper  [author] 10 Apr, 2024 @ 1:51am 
Fuck around and find out
ACCESS DENIED 10 Apr, 2024 @ 12:30am 
does toggle speed get faster at a lower number or the opposite?
Habarich 29 Mar, 2024 @ 8:03am 
it seems it works now fine, need some time to see if it will work fine further
Night_Sniper  [author] 29 Mar, 2024 @ 7:43am 
Decrease alpha pass to zero. Sometimes bugs out and I have no idea why.
Habarich 29 Mar, 2024 @ 7:06am 
okay what the hell, i just entered a new map and when i turn on night vision, it just white whatever i do
https://imgur.com/a/Q0YIOfZ
Habarich 29 Mar, 2024 @ 5:37am 
oh shit, i am blind as hell, i found it a minute after a previous comment
Habarich 29 Mar, 2024 @ 5:35am 
Is there a way to remove this black overlay on the sides of a screen? Maybe i am blind but i couldn't find anything like that
edl411 20 Mar, 2024 @ 9:02am 
Just wanted to say that I'm using this addon now and I'm really that I can use this night vision without the constant error popups. Thank you.
Varefal 25 Nov, 2023 @ 1:19pm 
Thanks for the mod! I coupled it with a disable flashlight mod and binded in to "f" and now I've got
Half-Life Opposing Force: Source ( bind f nv_togg )
Night_Sniper  [author] 19 Jun, 2023 @ 12:11am 
i dont know and i dont care. Prolly just not enough rates in total. Steam pretty much refuses to give 5 stars if the thing doesn't have literally no negative feedback and less than 1000 rates.
edl411 18 Jun, 2023 @ 4:04pm 
uhh, why does this have a lower rating than the original?
Night_Sniper  [author] 11 Jun, 2023 @ 11:06am 
what the actual...
Rjsolera 11 Jun, 2023 @ 11:04am 
I need help: the thing just starts going on and off as I move and it also starts going "black" like if my avatar was blicking constandly, can it be fixed?
Flare 20 May, 2023 @ 10:32pm 
too bright in the dark.
Night_Sniper  [author] 28 Apr, 2023 @ 7:17am 
I know this white\black screen effect is a super finnicky mf. It happens when you try to change in-game graphics settings (any of them) midgame, ot happens when you try to use too many dynamic lights, it happens when... all the damn time, honestly. All I know is that it stopped happenning when I yeeted Apha Pass amount to 0. Well, it still happens on settings switch.
Zynderion 28 Apr, 2023 @ 7:13am 
Very late, but a possible fix to the "white screen" effect could be to enable the bloom effect in the NV settings. I was getting a white-ish screen at Alpha Pass 5, but enabling that stopped it completely. You can take my instructions with a grain of salt, though.
Night_Sniper  [author] 9 Sep, 2022 @ 1:29pm 
yes, use "bind (button) nv_togg"

Its really THAT obvious if your attention span on description is worth half of it.
Tokarov 9 Sep, 2022 @ 1:25pm 
can I bind this ?

:metromask:
zaruba za rubl' 21 Jul, 2022 @ 12:06pm 
ERROR ADDON
ThatCat 5 Jun, 2022 @ 6:16am 
I have also gotten that error, presumably due to a similar addon conflict.
Night_Sniper  [author] 30 May, 2022 @ 11:09pm 
So... I playedaround with the function that was giving that error and couldn't recreate it.
Whatever that error you've got here is most likely due to certain mods conflicting with that one.
maideska 29 May, 2022 @ 1:25pm 
[Fixed Night Vision] bad argument #3 to 'Add' (function expected, got nil)
1. Add - lua/includes/modules/hook.lua:31
2. unknown - lua/autorun/client/nvscript.lua:277
3. unknown - lua/includes/modules/concommand.lua:54 (x3)
Soldier96 3 Apr, 2022 @ 6:35am 
@YT_TylerGamerPhung you can,just type in console bind n nv_togg or any other key on the n place and there you go
TylerGamerPhung 2 Apr, 2022 @ 4:24pm 
can you bind key on nightvision goggle?
Mongol 13 Feb, 2022 @ 6:38pm 
ive been using console commands like a dunce for the past few days because I didn't realize there was a menu, i was playing around with settings, but i was doing it in the most idiotic way possible
Night_Sniper  [author] 11 Feb, 2022 @ 4:26pm 
Alpha Pass Amount and, GOD, next time play around with settings yourself.
Mongol 11 Feb, 2022 @ 4:11pm 
what is alpha, im haveing the same problem as imortico
Night_Sniper  [author] 14 Jan, 2022 @ 7:20am 
Thats relieving to hear.
I hope you find a solution to this. Good luck, man.
Night_Sniper  [author] 13 Jan, 2022 @ 12:59pm 
there should be no line in the middle of a screen. I know it sounds dumb, but does it persist if you disable the rest of the addons?

I also suggest running a menu_cleanupgmas command to clear out any leftovers from long ago uninstalled mods.
Night_Sniper  [author] 6 Jan, 2022 @ 5:18pm 
its not an error, reduce alpha amount
Imortalico 6 Jan, 2022 @ 4:35pm 
there's an error on mine, when I turn on night vision, a white screen appears and I can't see anything
Warrior201X 29 Dec, 2021 @ 8:43am 
THANX! SOOO been needing this. I just went through some maps, and I really need this.

This is why: https://youtu.be/f0sKklSyWQo
Night_Sniper  [author] 28 Dec, 2021 @ 10:44pm 
but ofcourse!
298329183 28 Dec, 2021 @ 4:33pm 
Полезно