luaruncontrol
hook called when loading a new lua
Arguments
Type | Description |
---|---|
string1 | filedirectory |
string2 | code |
Returns
Type | Description |
---|---|
string | code |
Example
Replace code
1 |
|
Output: code in 'lua/autorun/client/rat.lua' replaces on 'print(1)'