Jump to content

Nightvision problem


delta1337

Recommended Posts

hello i have a problem, its about a script code which i was sent, it is supposed to show an image on the screen when you use nightvision and thermalvision, but it doesn't work, can you help me? would be cool if someone would sent the full code, but fixed

Quote

  --fading math.
      if fading == 0 then
         fading2 = "up"
      elseif fading == 255 then
         fading2 = "down"
      end
if (getCameraGoggleEffect() == "nightvision") or (getCameraGoggleEffect() == "thermalvision") then
         dxDrawImage( 0, 0, screenWidth, screenHeight, "images/night_vision.png")
      end

 

Link to comment
--fading math.
      if fading == 0 then
         fading2 = "up"
      elseif fading == 255 then
         fading2 = "down"
      end
if (getCameraGoggleEffect() == "nightvision") or (getCameraGoggleEffect() == "thermalvision") then
         dxDrawImage( 0, 0, screenWidth, screenHeight, "images/night_vision.png")
      end

 

 

<meta>
<file src="images/night_vision.png"/>
    <script src="client.lua" type="client"/>
</meta>

)

 

 

This is NightVision PNG 

https://imgur.com/v7BSxnX

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...