Jump to content

Hiddenall resource changes screen looking


Sex*

Recommended Posts

So I downloaded some screen cleaner resource:

local screenWidth,screenHeight = guiGetScreenSize() 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        myScreenSource = dxCreateScreenSource ( screenWidth, screenHeight )          
    end 
) 
     
function cleanmyscreen() 
    if myScreenSource then 
        dxUpdateScreenSource( myScreenSource )                   
        dxDrawImage( screenWidth - screenWidth,  screenHeight - screenHeight,  screenWidth, screenHeight, myScreenSource, 0, 0, 0, tocolor (255, 255, 255, 255), true)       
    end 
end 
  
  
function tooglecleanmyscreen () 
enabled = not enabled 
if enabled then 
    addEventHandler( "onClientRender", root, cleanmyscreen) 
    else 
    removeEventHandler( "onClientRender", root, cleanmyscreen) 
end 
end 
bindKey ("f2", "down", tooglecleanmyscreen) 

But it changes my screen looking, in pictures you can see that if its enabled then the textures aren't "shiny" anymore:

Not enabled and more beatiful:

0105552347b083f.jpg

Enabled and screen is darker:

01055523492d649.jpg

SO how to fix it?

Link to comment
  • 3 weeks later...

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...