Jump to content

need to show an image


emuk

Recommended Posts

You can't show an image, you have to use the server-side text functions.

Thats wrong! Cleary wront!

  
addEventHandler("onClientRender", root, function() 
        if isTransferBoxActive() then  
            dxDrawImage("youArguments") 
     end 
end 
) 
  

Link to comment
You can't show an image, you have to use the server-side text functions.

Thats wrong! Cleary wront!

  
addEventHandler("onClientRender", root, function() 
        if isTransferBoxActive() then  
            dxDrawImage("youArguments") 
     end 
end 
) 
  

onClientRender won't start until the resource is downloaded and started. It won't start until the entire server is downloaded. There for, your argument is invalid.

Edited by Guest
Link to comment

No, it's not wrong. Client-side scripts get started when downloading is done? So how do you even want to start the drawing of a DX element? :roll: (This is about when joining the server for the first time, or he does mean downloading with fetchRemote/downloadFile, then you can.)

Link to comment

onClientRender won't start until the resource is downloaded and started. It won't start until the entire server is downloaded. There for, your argument is invalid.

How can you check if he is downloading the resources then lol?? Thats only the way I know.

You can't call client functions when the client is still downloading. Therefor, you can't create an image while the client is downloading.

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