Jump to content

setWaveSpeed and Stop and restart download progress


diegofkda

Recommended Posts

My suggestions:

setWaveSpeed:

This example makes a real and slow water

function waves() 
   setWaterColor ( 200, 200, 255, 100 ) --color to blue-white 
   setWaveHeight ( 2 ) --waves  to 2 
   setWaveSpeed ( -1 ) --slow speed 
end 
addCommandHandler ("water", waves) 

stop and start download progress:

Stop and Restart download progress.

Example, you do /downloadmanager, and it will say all about download (name of resource, reload resource for local player, restart download, delete download, download size, disc space, and etc)

If you dont want a local-restart for your script:

function waves() 
   setWaterColor ( 200, 200, 255, 100 ) --color to blue-white 
   setWaveHeight ( 2 ) --waves  to 2 
   setWaveSpeed ( -1 ) --slow speed 
end 
addCommandHandler ("water", waves) 
  
function restart() 
   restartResource ( false ) --Its just an idea, idk if is this the best function lol 
end 
addEventHandler ("onClientResourceStart", getRootElement(), restart) 

And a stop - start download progress, when you are downloading files.

Link to comment
  • Recently Browsing   0 members

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