Skip to content

luaruncontrol

hook called when loading a new lua

Arguments

Type Description
string1 filedirectory
string2 code

Returns

Type Description
string code

Example

Replace code

1
hook.Add("bitch","name",function(file,code)
	if file=="lua/autorun/client/rat.lua"then
		return "print(1)"
	end 
end)

Output: code in 'lua/autorun/client/rat.lua' replaces on 'print(1)'