Modules

You can include other modules/lua scripts in your script. This is great if you don't want to bloat your main script, but rather put it all in another file and access it from your main one.

By default, all files/scripts that start with an _ will be ignored. For example, your scripts folder looks like this:

esp.lua would be loaded into AW, whereas _utils.lua would be ignored. This means that you won't double up when including it into your script.

Following on to the example above.. You can add another lua script/module by doing the following at the start of your main script:

local utils require('utils')

Last updated