Jump to content

Resource is starting but does nothing?


Recommended Posts

Hey Guys,

i have an awkward problem.

I'm starting my script but it does nothing?

I tried typing "refresh", no error.

I also tried to start a function like

  
function blabla() 
  

without an end so it gives me a debugscript error, but it doesn't output anything??

My whole script atm :

  
local x, y = guiGetScreenSize() 
local blurShader 
  
    addEventHandler("onClientResourceStart", resourceRoot, 
        function() 
            outputChatBox("yoo") 
                blurShader = dxCreateShader("datas/BlurShader.fx") 
                if blurShader then   
                    outputChatBox("YAY") 
                end 
                addEventHandler("onClientRender",root,DrawStuff) 
  
    end) 
     
        function DrawStuff() 
        if (blurShader) then 
            dxSetShaderValue(blurShader, "BlurStrength", 6); 
  
            dxDrawImage(0, 0, x, y, blurShader) 
        end 
    end 
  

My Meta:

  

    "#ER|Karuzo" description="er_freeroam" version="1.0" type="script" /> 
         
        "datas/BlurShader.fx" type="client" /> 
         
        

Link to comment

Yeah but that wasn't the problem, and btw the download argument is 1.4+.

Any other tips?

PD: Other resources work like a charm. And the Server-sided file works also. So only the client-side file doesn't work, dunno why.

Link to comment
If you created the resource when your server was already running you'll have to restart it so it can read all the resource folders again.

Why? I always create my resources when my server is running, didn't had any problems with that.

Just restarted the server , doesn't help at all, tried to put the folder into a .zip , same problem..

Link to comment
If you created the resource when your server was already running you'll have to restart it so it can read all the resource folders again.

Why? I always create my resources when my server is running, didn't had any problems with that.

Just restarted the server , doesn't help at all, tried to put the folder into a .zip , same problem..

Well, that's what happens to me. Did you check if your resource is in the correct folder:

server\mods\deathmatch\resources and not mods\deathmatch\resources?

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