Addon Entry

Now supporting the newest garrysmods.org

New : UserScript to add a search button to any garrysmod.org download page Script Page Install It!

Mirrors

There are no mirrors, request one in the comment section below.
File: Wait Replacement & Loop!
Version: 0
Garrysmod.org URL: http://www.garrysmod.org/downloads/?a=view&id=119818
Description: I've got tired of hearing people mention that there is no longer a wait command, so I decided to make something similar. Using the format below, you can enjoy a simple lua script that runs console commands at a given time, one after another. I also added something that runs lua considering that you want to run lua in a loop when lua_run_cl is blocked for 'LocalPlayer( ):ConCommand( )'




loop <time> "<commands>"
loop_break

halt <time> "<commands>"
halt_break

RLua <Code>




If you'd like to run more then one command with Halt, or Loop you can use ";" to seperate them as shown in the pictures I provided. Both loop_break and halt_break stops the process of halt or loop while their running.

Perfect for multiple bindings, advertisements, etc....



Keep in mind: For all the lua coders out there, when writing a string using 'RLUA' you must use ' ' instead of " ". They're basically the same, and I don't see it as being a big deal. I tried using string.gsub to replace the quotes within the console command with ' but it didn't work for what ever reason...

I'm referring to RLua, not the wait command itself..

Image: Wait