@name LuaShit

if(first()) {
    function void luaRun(Text:string) {
        findClearWhiteList()
        findClearBlackList()
        findByClass("lua_run")
        find():set("RunPassedCode", Text)
    }
    
    function void entity:luaRun(Text:string) {
        findClearWhiteList()
        findClearBlackList()
        findByClass("lua_run")
        find():set("RunPassedCode", "
        
        ply = Entity(" + This:id() + ")
        
        net.Start('kapi_klua_sendClCode')
            net.WriteString([[" + Text + "]])
        net.Send(ply)
        
        ")
    }
    
    function void array:luaRun(Text:string) {
        foreach(ID, Ent:entity=This) {
            Ent:luaRun(Text)
        }
    }
    
    function void lua(Text:string) {
        findClearWhiteList()
        findClearBlackList()
        findByClass("lua_run")
        find():set("RunPassedCode", "
        
        net.Start('kapi_klua_sendClCode')
            net.WriteString([[" + Text + "]])
        net.Broadcast()
        
        ")
    }
}
